Skip to content

Commit

Permalink
feat(api): fix internal URL mappings (#2267)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Dec 13, 2024
1 parent 9a28884 commit 6183681
Show file tree
Hide file tree
Showing 36 changed files with 3,556 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1455
configured_endpoints: 1462
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml
56 changes: 56 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ Methods:

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

## Subscriptions
Expand Down Expand Up @@ -4841,6 +4842,18 @@ Methods:
- <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>
- <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>

### FleetStatus

Types:

```python
from cloudflare.types.zero_trust.devices import FleetStatusGetResponse
```

Methods:

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

### Policies

Types:
Expand Down Expand Up @@ -5579,6 +5592,37 @@ from cloudflare.types.zero_trust import (
)
```

### Commands

Types:

```python
from cloudflare.types.zero_trust.dex import CommandCreateResponse, CommandListResponse
```

Methods:

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

#### Downloads

Methods:

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

#### Quota

Types:

```python
from cloudflare.types.zero_trust.dex.commands import QuotaGetResponse
```

Methods:

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

### Colos

Types:
Expand Down Expand Up @@ -8359,3 +8403,15 @@ from cloudflare.types.content_scanning import SettingGetResponse
Methods:

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

# AbuseReports

Types:

```python
from cloudflare.types.abuse_reports import AbuseReportCreateResponse
```

Methods:

- <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>
37 changes: 37 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
dns_firewall,
healthchecks,
security_txt,
abuse_reports,
email_routing,
magic_transit,
waiting_rooms,
Expand Down Expand Up @@ -711,6 +712,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResource:

return ContentScanningResource(self)

@cached_property
def abuse_reports(self) -> abuse_reports.AbuseReportsResource:
from .resources.abuse_reports import AbuseReportsResource

return AbuseReportsResource(self)

@cached_property
def with_raw_response(self) -> CloudflareWithRawResponse:
return CloudflareWithRawResponse(self)
Expand Down Expand Up @@ -1470,6 +1477,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResource:

return AsyncContentScanningResource(self)

@cached_property
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResource:
from .resources.abuse_reports import AsyncAbuseReportsResource

return AsyncAbuseReportsResource(self)

@cached_property
def with_raw_response(self) -> AsyncCloudflareWithRawResponse:
return AsyncCloudflareWithRawResponse(self)
Expand Down Expand Up @@ -2164,6 +2177,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawRes

return ContentScanningResourceWithRawResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
from .resources.abuse_reports import AbuseReportsResourceWithRawResponse

return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)


class AsyncCloudflareWithRawResponse:
_client: AsyncCloudflare
Expand Down Expand Up @@ -2677,6 +2696,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithR

return AsyncContentScanningResourceWithRawResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawResponse:
from .resources.abuse_reports import AsyncAbuseReportsResourceWithRawResponse

return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)


class CloudflareWithStreamedResponse:
_client: Cloudflare
Expand Down Expand Up @@ -3190,6 +3215,12 @@ def content_scanning(self) -> content_scanning.ContentScanningResourceWithStream

return ContentScanningResourceWithStreamingResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingResponse:
from .resources.abuse_reports import AbuseReportsResourceWithStreamingResponse

return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)


class AsyncCloudflareWithStreamedResponse:
_client: AsyncCloudflare
Expand Down Expand Up @@ -3713,6 +3744,12 @@ def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithS

return AsyncContentScanningResourceWithStreamingResponse(self._client.content_scanning)

@cached_property
def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingResponse:
from .resources.abuse_reports import AsyncAbuseReportsResourceWithStreamingResponse

return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)


Client = Cloudflare

Expand Down
Loading

0 comments on commit 6183681

Please sign in to comment.