Skip to content

Commit 165bc8c

Browse files
feat(api): fix internal URL mappings (#2267)
1 parent e738082 commit 165bc8c

36 files changed

+3556
-2
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1455
1+
configured_endpoints: 1462
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml

api.md

+56
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ Methods:
417417

418418
- <code title="post /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
419419
- <code title="delete /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">delete</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
420+
- <code title="patch /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
420421
- <code title="get /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
421422

422423
## Subscriptions
@@ -4841,6 +4842,18 @@ Methods:
48414842
- <code title="delete /accounts/{account_id}/devices/networks/{network_id}">client.zero_trust.devices.networks.<a href="./src/cloudflare/resources/zero_trust/devices/networks.py">delete</a>(network_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/network_delete_response.py">Optional[NetworkDeleteResponse]</a></code>
48424843
- <code title="get /accounts/{account_id}/devices/networks/{network_id}">client.zero_trust.devices.networks.<a href="./src/cloudflare/resources/zero_trust/devices/networks.py">get</a>(network_id, \*, account_id) -> <a href="./src/cloudflare/types/zero_trust/devices/device_network.py">Optional[DeviceNetwork]</a></code>
48434844

4845+
### FleetStatus
4846+
4847+
Types:
4848+
4849+
```python
4850+
from cloudflare.types.zero_trust.devices import FleetStatusGetResponse
4851+
```
4852+
4853+
Methods:
4854+
4855+
- <code title="get /accounts/{account_id}/dex/devices/{device_id}/fleet-status/live">client.zero_trust.devices.fleet_status.<a href="./src/cloudflare/resources/zero_trust/devices/fleet_status.py">get</a>(device_id, \*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/devices/fleet_status_get_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/devices/fleet_status_get_response.py">FleetStatusGetResponse</a></code>
4856+
48444857
### Policies
48454858

48464859
Types:
@@ -5579,6 +5592,37 @@ from cloudflare.types.zero_trust import (
55795592
)
55805593
```
55815594

5595+
### Commands
5596+
5597+
Types:
5598+
5599+
```python
5600+
from cloudflare.types.zero_trust.dex import CommandCreateResponse, CommandListResponse
5601+
```
5602+
5603+
Methods:
5604+
5605+
- <code title="post /accounts/{account_id}/dex/commands">client.zero_trust.dex.commands.<a href="./src/cloudflare/resources/zero_trust/dex/commands/commands.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/command_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/command_create_response.py">Optional[CommandCreateResponse]</a></code>
5606+
- <code title="get /accounts/{account_id}/dex/commands">client.zero_trust.dex.commands.<a href="./src/cloudflare/resources/zero_trust/dex/commands/commands.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/zero_trust/dex/command_list_params.py">params</a>) -> <a href="./src/cloudflare/types/zero_trust/dex/command_list_response.py">SyncV4PagePagination[Optional[CommandListResponse]]</a></code>
5607+
5608+
#### Downloads
5609+
5610+
Methods:
5611+
5612+
- <code title="get /accounts/{account_id}/dex/commands/{command_id}/downloads/{filename}">client.zero_trust.dex.commands.downloads.<a href="./src/cloudflare/resources/zero_trust/dex/commands/downloads.py">get</a>(filename, \*, account_id, command_id) -> BinaryAPIResponse</code>
5613+
5614+
#### Quota
5615+
5616+
Types:
5617+
5618+
```python
5619+
from cloudflare.types.zero_trust.dex.commands import QuotaGetResponse
5620+
```
5621+
5622+
Methods:
5623+
5624+
- <code title="get /accounts/{account_id}/dex/commands/quota">client.zero_trust.dex.commands.quota.<a href="./src/cloudflare/resources/zero_trust/dex/commands/quota.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/zero_trust/dex/commands/quota_get_response.py">Optional[QuotaGetResponse]</a></code>
5625+
55825626
### Colos
55835627

55845628
Types:
@@ -8359,3 +8403,15 @@ from cloudflare.types.content_scanning import SettingGetResponse
83598403
Methods:
83608404

83618405
- <code title="get /zones/{zone_id}/content-upload-scan/settings">client.content_scanning.settings.<a href="./src/cloudflare/resources/content_scanning/settings.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/content_scanning/setting_get_response.py">SettingGetResponse</a></code>
8406+
8407+
# AbuseReports
8408+
8409+
Types:
8410+
8411+
```python
8412+
from cloudflare.types.abuse_reports import AbuseReportCreateResponse
8413+
```
8414+
8415+
Methods:
8416+
8417+
- <code title="post /accounts/{account_id}/v1/abuse-reports/{report_type}">client.abuse_reports.<a href="./src/cloudflare/resources/abuse_reports.py">create</a>(report_type, \*, account_id, \*\*<a href="src/cloudflare/types/abuse_reports/abuse_report_create_params.py">params</a>) -> <a href="./src/cloudflare/types/abuse_reports/abuse_report_create_response.py">str</a></code>

src/cloudflare/_client.py

+37
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
dns_firewall,
9292
healthchecks,
9393
security_txt,
94+
abuse_reports,
9495
email_routing,
9596
magic_transit,
9697
waiting_rooms,
@@ -711,6 +712,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResource:
711712

712713
return ContentScanningResource(self)
713714

715+
@cached_property
716+
def abuse_reports(self) -> abuse_reports.AbuseReportsResource:
717+
from .resources.abuse_reports import AbuseReportsResource
718+
719+
return AbuseReportsResource(self)
720+
714721
@cached_property
715722
def with_raw_response(self) -> CloudflareWithRawResponse:
716723
return CloudflareWithRawResponse(self)
@@ -1470,6 +1477,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResource:
14701477

14711478
return AsyncContentScanningResource(self)
14721479

1480+
@cached_property
1481+
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResource:
1482+
from .resources.abuse_reports import AsyncAbuseReportsResource
1483+
1484+
return AsyncAbuseReportsResource(self)
1485+
14731486
@cached_property
14741487
def with_raw_response(self) -> AsyncCloudflareWithRawResponse:
14751488
return AsyncCloudflareWithRawResponse(self)
@@ -2164,6 +2177,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawRes
21642177

21652178
return ContentScanningResourceWithRawResponse(self._client.content_scanning)
21662179

2180+
@cached_property
2181+
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
2182+
from .resources.abuse_reports import AbuseReportsResourceWithRawResponse
2183+
2184+
return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)
2185+
21672186

21682187
class AsyncCloudflareWithRawResponse:
21692188
_client: AsyncCloudflare
@@ -2677,6 +2696,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithR
26772696

26782697
return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)
26792698

2699+
@cached_property
2700+
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawResponse:
2701+
from .resources.abuse_reports import AsyncAbuseReportsResourceWithRawResponse
2702+
2703+
return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)
2704+
26802705

26812706
class CloudflareWithStreamedResponse:
26822707
_client: Cloudflare
@@ -3190,6 +3215,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithStream
31903215

31913216
return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)
31923217

3218+
@cached_property
3219+
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingResponse:
3220+
from .resources.abuse_reports import AbuseReportsResourceWithStreamingResponse
3221+
3222+
return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
3223+
31933224

31943225
class AsyncCloudflareWithStreamedResponse:
31953226
_client: AsyncCloudflare
@@ -3713,6 +3744,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithS
37133744

37143745
return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)
37153746

3747+
@cached_property
3748+
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingResponse:
3749+
from .resources.abuse_reports import AsyncAbuseReportsResourceWithStreamingResponse
3750+
3751+
return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
3752+
37163753

37173754
Client = Cloudflare
37183755

0 commit comments

Comments
 (0)