Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
24026a3
feat: feat(queues): add queues metrics endpoint
stainless-app[bot] Apr 24, 2026
2b3061a
feat: chore: skip failing tests for dns.records and workers.beta.workers
stainless-app[bot] Apr 24, 2026
6b156d9
chore(api): update composite API spec
stainless-app[bot] Apr 27, 2026
3d8af2c
codegen metadata
stainless-app[bot] Apr 27, 2026
cb19f09
codegen metadata
stainless-app[bot] Apr 28, 2026
5934108
chore(api): update composite API spec
stainless-app[bot] Apr 28, 2026
e6c37b0
codegen metadata
stainless-app[bot] Apr 28, 2026
4dab5b0
chore(api): update composite API spec
stainless-app[bot] Apr 28, 2026
d42e065
codegen metadata
stainless-app[bot] Apr 28, 2026
3ebe4bc
codegen metadata
stainless-app[bot] Apr 28, 2026
f781a02
chore(api): update composite API spec
stainless-app[bot] Apr 29, 2026
9a6518a
chore(api): update composite API spec
stainless-app[bot] Apr 29, 2026
68ea77d
chore(api): update composite API spec
stainless-app[bot] Apr 29, 2026
5c7db6b
codegen metadata
stainless-app[bot] Apr 29, 2026
434e873
chore(api): update composite API spec
stainless-app[bot] Apr 29, 2026
94536a0
feat: chore: skip failing tests for email_security.settings and worke…
stainless-app[bot] Apr 29, 2026
57311bf
codegen metadata
stainless-app[bot] Apr 30, 2026
5cc95f1
chore(api): update composite API spec
stainless-app[bot] Apr 30, 2026
3ef3fff
chore(api): update composite API spec
stainless-app[bot] Apr 30, 2026
40a47dc
feat: chore: skip fraud.update test (HTTP 422 from prism)
stainless-app[bot] Apr 30, 2026
df2b7b8
codegen metadata
stainless-app[bot] Apr 30, 2026
c4fe313
feat: feat(python): switch package manager from rye to uv
stainless-app[bot] Apr 30, 2026
3092db2
codegen metadata
stainless-app[bot] Apr 30, 2026
659ab00
codegen metadata
stainless-app[bot] May 1, 2026
2cf81d5
chore(api): update composite API spec
stainless-app[bot] May 1, 2026
5613798
feat: feat(api): add zero_trust_device_deployment_groups resource
stainless-app[bot] May 1, 2026
051abef
feat: chore: skip failing deployment_groups tests
stainless-app[bot] May 1, 2026
90bfedc
codegen metadata
stainless-app[bot] May 2, 2026
66b18de
chore(api): update composite API spec
stainless-app[bot] May 4, 2026
2a4624b
feat: feat(SCTR): add audit log, classification, and context endpoint…
stainless-app[bot] May 4, 2026
fff49ee
chore(api): update composite API spec
stainless-app[bot] May 4, 2026
99e3320
chore(api): update composite API spec
stainless-app[bot] May 4, 2026
a39d1eb
Merge remote-tracking branch 'origin/next' into staging-next
musa-cf May 4, 2026
a92f9ef
chore(api): update composite API spec
stainless-app[bot] May 4, 2026
46898b8
feat: feat: add resource library endpoints inside zero trust
stainless-app[bot] May 5, 2026
d2a5686
chore(api): update composite API spec
stainless-app[bot] May 5, 2026
cc614b1
feat: feat(load_balancer_monitor_group): promote load_balancer_monito…
stainless-app[bot] May 5, 2026
7e0de28
codegen metadata
stainless-app[bot] May 5, 2026
8d7e2c8
feat: feat(cache): Update OPCR config to v2 endpoints (CACHE-13523)
stainless-app[bot] May 5, 2026
80ce92d
chore(api): update composite API spec
stainless-app[bot] May 5, 2026
7d03cf2
chore(api): update composite API spec
stainless-app[bot] May 5, 2026
854a77c
feat: feat(cache): add create (POST) method for smart_tiered_cache
stainless-app[bot] May 5, 2026
1fc2411
codegen metadata
stainless-app[bot] May 5, 2026
bda7226
feat: feat(radar): add BGP RPKI ROAs timeseries and BGP IPs top ASes …
stainless-app[bot] May 5, 2026
2dbbc68
codegen metadata
stainless-app[bot] May 5, 2026
5ac9ffc
Merge branch 'next' into staging-next
musa-cf May 5, 2026
4694bd3
chore(api): update composite API spec
stainless-app[bot] May 5, 2026
ae726cf
chore(api): update composite API spec
stainless-app[bot] May 6, 2026
510201a
feat: feat(ai_gateway): add billing endpoints for credit balance, usa…
stainless-app[bot] May 6, 2026
f1972ec
codegen metadata
stainless-app[bot] May 6, 2026
b92a468
feat: chore: skip failing Go SDK tests for ai_gateway, cache, load_ba…
stainless-app[bot] May 6, 2026
09f8e4e
chore(api): update composite API spec
stainless-app[bot] May 6, 2026
05f6cfe
chore(api): update composite API spec
stainless-app[bot] May 6, 2026
d25bc11
chore(api): update composite API spec
stainless-app[bot] May 7, 2026
38d6e17
codegen metadata
stainless-app[bot] May 7, 2026
642ba2b
codegen metadata
stainless-app[bot] May 7, 2026
e2a04c6
codegen metadata
stainless-app[bot] May 7, 2026
a349a40
chore(api): update composite API spec
stainless-app[bot] May 11, 2026
b58116b
chore(api): update composite API spec
stainless-app[bot] May 12, 2026
b230f76
codegen metadata
stainless-app[bot] May 12, 2026
ea62a00
feat: feat: WAD-244 Onboard AI Security for Apps api
stainless-app[bot] May 12, 2026
69dd8b9
feat: chore: skip 25 failing TypeScript SDK tests from prism
stainless-app[bot] May 12, 2026
fdbdc38
chore(api): update composite API spec
stainless-app[bot] May 12, 2026
c79229b
codegen metadata
stainless-app[bot] May 12, 2026
233e4f4
codegen metadata
stainless-app[bot] May 13, 2026
106aa43
chore(api): update composite API spec
stainless-app[bot] May 13, 2026
4fc7703
chore(api): update composite API spec
stainless-app[bot] May 13, 2026
98062f3
codegen metadata
stainless-app[bot] May 13, 2026
a084a12
chore(api): update composite API spec
stainless-app[bot] May 13, 2026
e81ef21
codegen metadata
stainless-app[bot] May 13, 2026
603419b
codegen metadata
stainless-app[bot] May 14, 2026
08ca3b9
chore(api): update composite API spec
stainless-app[bot] May 14, 2026
1ae1684
feat: feat(api): add advanced_tcp_protection endpoint mappings
stainless-app[bot] May 14, 2026
402c597
codegen metadata
stainless-app[bot] May 14, 2026
136752f
chore(api): update composite API spec
stainless-app[bot] May 14, 2026
02d40f8
chore(api): update composite API spec
stainless-app[bot] May 15, 2026
103d591
feat: feat(api): WC-5056: add Workers .../secrets-bulk endpoints
stainless-app[bot] May 15, 2026
ec85c22
chore(api): update composite API spec
stainless-app[bot] May 15, 2026
d1ef1b7
feat: feat(r2): add R2 bucket objects resource mapping (APIX-674)
stainless-app[bot] May 15, 2026
4f7489f
feat: feat(observability): adds Workers > Observability > Queries
stainless-app[bot] May 18, 2026
0f57d32
chore(api): update composite API spec
stainless-app[bot] May 18, 2026
c736db0
chore(api): update composite API spec
stainless-app[bot] May 18, 2026
c7f86ed
feat: chore: skip failing tests from CI run 26052878605
stainless-app[bot] May 18, 2026
41428c3
feat: feat(secrets_store): add Terraform configuration for secrets_st…
stainless-app[bot] May 18, 2026
7b781ef
chore(api): update composite API spec
stainless-app[bot] May 18, 2026
0f311fa
chore(api): update composite API spec
stainless-app[bot] May 18, 2026
93ee2d1
chore(api): update composite API spec
stainless-app[bot] May 19, 2026
fa12d65
chore(api): update composite API spec
stainless-app[bot] May 19, 2026
9116d86
chore(api): update composite API spec
stainless-app[bot] May 19, 2026
374a395
feat: chore: skip custom_certificates.create from CI run 26106703110
stainless-app[bot] May 19, 2026
a41f7ff
codegen metadata
stainless-app[bot] May 19, 2026
3007fb4
chore(api): update composite API spec
stainless-app[bot] May 19, 2026
461adac
codegen metadata
stainless-app[bot] May 19, 2026
95d2889
chore(api): update composite API spec
stainless-app[bot] May 20, 2026
49ecf94
chore(api): update composite API spec
stainless-app[bot] May 20, 2026
35b59b0
chore(api): update composite API spec
stainless-app[bot] May 20, 2026
d258206
codegen metadata
stainless-app[bot] May 20, 2026
e6d615a
feat: feat(billing): add billable usage endpoints for accounts and or…
stainless-app[bot] May 20, 2026
4e313b0
chore(api): update composite API spec
stainless-app[bot] May 20, 2026
d1f357b
chore(api): update composite API spec
stainless-app[bot] May 20, 2026
1fe529d
chore(api): update composite API spec
stainless-app[bot] May 21, 2026
10aa452
codegen metadata
stainless-app[bot] May 21, 2026
8a8b693
chore(api): update composite API spec
stainless-app[bot] May 21, 2026
c102b28
feat: feat(dls): add DLS regions and prefix_binding resources
stainless-app[bot] May 21, 2026
afe3c92
chore(api): update composite API spec
stainless-app[bot] May 21, 2026
d8dcb0c
codegen metadata
stainless-app[bot] May 22, 2026
ce2f012
feat: feat(snippets): add terraform id_property annotations for snipp…
stainless-app[bot] May 22, 2026
e572e2e
chore(api): update composite API spec
stainless-app[bot] May 22, 2026
f88d34f
Merge remote-tracking branch 'origin/next' into staging-next
musa-cf May 22, 2026
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
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 2277
configured_endpoints: 2284
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
openapi_spec_hash: c0d553c22ef1e807dd815f71023050f4
config_hash: 245f966442f3af14c23b79cbfdf06161
openapi_spec_hash: 9fa1bf5d59398da9212855e06ad932b3
config_hash: 3504379ebb14928a9890a391899a2e10
2 changes: 2 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ from cloudflare.types import (

# [Addressing](src/cloudflare/resources/addressing/api.md)

# [DLS](src/cloudflare/resources/dls/api.md)

# [AuditLogs](src/cloudflare/resources/audit_logs/api.md)

# [Billing](src/cloudflare/resources/billing/api.md)
Expand Down
38 changes: 38 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
kv,
r2,
acm,
dls,
dns,
iam,
ips,
Expand Down Expand Up @@ -148,6 +149,7 @@
from .resources.kv.kv import KVResource, AsyncKVResource
from .resources.r2.r2 import R2Resource, AsyncR2Resource
from .resources.acm.acm import ACMResource, AsyncACMResource
from .resources.dls.dls import DLSResource, AsyncDLSResource
from .resources.dns.dns import DNSResource, AsyncDNSResource
from .resources.iam.iam import IAMResource, AsyncIAMResource
from .resources.ips.ips import IPsResource, AsyncIPsResource
Expand Down Expand Up @@ -651,6 +653,12 @@ def addressing(self) -> AddressingResource:

return AddressingResource(self)

@cached_property
def dls(self) -> DLSResource:
from .resources.dls import DLSResource

return DLSResource(self)

@cached_property
def audit_logs(self) -> AuditLogsResource:
from .resources.audit_logs import AuditLogsResource
Expand Down Expand Up @@ -1553,6 +1561,12 @@ def addressing(self) -> AsyncAddressingResource:

return AsyncAddressingResource(self)

@cached_property
def dls(self) -> AsyncDLSResource:
from .resources.dls import AsyncDLSResource

return AsyncDLSResource(self)

@cached_property
def audit_logs(self) -> AsyncAuditLogsResource:
from .resources.audit_logs import AsyncAuditLogsResource
Expand Down Expand Up @@ -2383,6 +2397,12 @@ def addressing(self) -> addressing.AddressingResourceWithRawResponse:

return AddressingResourceWithRawResponse(self._client.addressing)

@cached_property
def dls(self) -> dls.DLSResourceWithRawResponse:
from .resources.dls import DLSResourceWithRawResponse

return DLSResourceWithRawResponse(self._client.dls)

@cached_property
def audit_logs(self) -> audit_logs.AuditLogsResourceWithRawResponse:
from .resources.audit_logs import AuditLogsResourceWithRawResponse
Expand Down Expand Up @@ -3040,6 +3060,12 @@ def addressing(self) -> addressing.AsyncAddressingResourceWithRawResponse:

return AsyncAddressingResourceWithRawResponse(self._client.addressing)

@cached_property
def dls(self) -> dls.AsyncDLSResourceWithRawResponse:
from .resources.dls import AsyncDLSResourceWithRawResponse

return AsyncDLSResourceWithRawResponse(self._client.dls)

@cached_property
def audit_logs(self) -> audit_logs.AsyncAuditLogsResourceWithRawResponse:
from .resources.audit_logs import AsyncAuditLogsResourceWithRawResponse
Expand Down Expand Up @@ -3697,6 +3723,12 @@ def addressing(self) -> addressing.AddressingResourceWithStreamingResponse:

return AddressingResourceWithStreamingResponse(self._client.addressing)

@cached_property
def dls(self) -> dls.DLSResourceWithStreamingResponse:
from .resources.dls import DLSResourceWithStreamingResponse

return DLSResourceWithStreamingResponse(self._client.dls)

@cached_property
def audit_logs(self) -> audit_logs.AuditLogsResourceWithStreamingResponse:
from .resources.audit_logs import AuditLogsResourceWithStreamingResponse
Expand Down Expand Up @@ -4356,6 +4388,12 @@ def addressing(self) -> addressing.AsyncAddressingResourceWithStreamingResponse:

return AsyncAddressingResourceWithStreamingResponse(self._client.addressing)

@cached_property
def dls(self) -> dls.AsyncDLSResourceWithStreamingResponse:
from .resources.dls import AsyncDLSResourceWithStreamingResponse

return AsyncDLSResourceWithStreamingResponse(self._client.dls)

@cached_property
def audit_logs(self) -> audit_logs.AsyncAuditLogsResourceWithStreamingResponse:
from .resources.audit_logs import AsyncAuditLogsResourceWithStreamingResponse
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/addressing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,8 @@
LOADocumentsResourceWithStreamingResponse,
AsyncLOADocumentsResourceWithStreamingResponse,
)
from .regional_hostnames import (
RegionalHostnamesResource,
AsyncRegionalHostnamesResource,
RegionalHostnamesResourceWithRawResponse,
AsyncRegionalHostnamesResourceWithRawResponse,
RegionalHostnamesResourceWithStreamingResponse,
AsyncRegionalHostnamesResourceWithStreamingResponse,
)

__all__ = [
"RegionalHostnamesResource",
"AsyncRegionalHostnamesResource",
"RegionalHostnamesResourceWithRawResponse",
"AsyncRegionalHostnamesResourceWithRawResponse",
"RegionalHostnamesResourceWithStreamingResponse",
"AsyncRegionalHostnamesResourceWithStreamingResponse",
"ServicesResource",
"AsyncServicesResource",
"ServicesResourceWithRawResponse",
Expand Down
32 changes: 0 additions & 32 deletions src/cloudflare/resources/addressing/addressing.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,11 @@
AddressMapsResourceWithStreamingResponse,
AsyncAddressMapsResourceWithStreamingResponse,
)
from .regional_hostnames.regional_hostnames import (
RegionalHostnamesResource,
AsyncRegionalHostnamesResource,
RegionalHostnamesResourceWithRawResponse,
AsyncRegionalHostnamesResourceWithRawResponse,
RegionalHostnamesResourceWithStreamingResponse,
AsyncRegionalHostnamesResourceWithStreamingResponse,
)

__all__ = ["AddressingResource", "AsyncAddressingResource"]


class AddressingResource(SyncAPIResource):
@cached_property
def regional_hostnames(self) -> RegionalHostnamesResource:
return RegionalHostnamesResource(self._client)

@cached_property
def services(self) -> ServicesResource:
return ServicesResource(self._client)
Expand Down Expand Up @@ -90,10 +78,6 @@ def with_streaming_response(self) -> AddressingResourceWithStreamingResponse:


class AsyncAddressingResource(AsyncAPIResource):
@cached_property
def regional_hostnames(self) -> AsyncRegionalHostnamesResource:
return AsyncRegionalHostnamesResource(self._client)

@cached_property
def services(self) -> AsyncServicesResource:
return AsyncServicesResource(self._client)
Expand Down Expand Up @@ -134,10 +118,6 @@ class AddressingResourceWithRawResponse:
def __init__(self, addressing: AddressingResource) -> None:
self._addressing = addressing

@cached_property
def regional_hostnames(self) -> RegionalHostnamesResourceWithRawResponse:
return RegionalHostnamesResourceWithRawResponse(self._addressing.regional_hostnames)

@cached_property
def services(self) -> ServicesResourceWithRawResponse:
return ServicesResourceWithRawResponse(self._addressing.services)
Expand All @@ -159,10 +139,6 @@ class AsyncAddressingResourceWithRawResponse:
def __init__(self, addressing: AsyncAddressingResource) -> None:
self._addressing = addressing

@cached_property
def regional_hostnames(self) -> AsyncRegionalHostnamesResourceWithRawResponse:
return AsyncRegionalHostnamesResourceWithRawResponse(self._addressing.regional_hostnames)

@cached_property
def services(self) -> AsyncServicesResourceWithRawResponse:
return AsyncServicesResourceWithRawResponse(self._addressing.services)
Expand All @@ -184,10 +160,6 @@ class AddressingResourceWithStreamingResponse:
def __init__(self, addressing: AddressingResource) -> None:
self._addressing = addressing

@cached_property
def regional_hostnames(self) -> RegionalHostnamesResourceWithStreamingResponse:
return RegionalHostnamesResourceWithStreamingResponse(self._addressing.regional_hostnames)

@cached_property
def services(self) -> ServicesResourceWithStreamingResponse:
return ServicesResourceWithStreamingResponse(self._addressing.services)
Expand All @@ -209,10 +181,6 @@ class AsyncAddressingResourceWithStreamingResponse:
def __init__(self, addressing: AsyncAddressingResource) -> None:
self._addressing = addressing

@cached_property
def regional_hostnames(self) -> AsyncRegionalHostnamesResourceWithStreamingResponse:
return AsyncRegionalHostnamesResourceWithStreamingResponse(self._addressing.regional_hostnames)

@cached_property
def services(self) -> AsyncServicesResourceWithStreamingResponse:
return AsyncServicesResourceWithStreamingResponse(self._addressing.services)
Expand Down
34 changes: 0 additions & 34 deletions src/cloudflare/resources/addressing/api.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
# Addressing

## RegionalHostnames

Types:

```python
from cloudflare.types.addressing import (
RegionalHostnameCreateResponse,
RegionalHostnameListResponse,
RegionalHostnameDeleteResponse,
RegionalHostnameEditResponse,
RegionalHostnameGetResponse,
)
```

Methods:

- <code title="post /zones/{zone_id}/addressing/regional_hostnames">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/addressing/regional_hostname_create_params.py">params</a>) -> <a href="./src/cloudflare/types/addressing/regional_hostname_create_response.py">Optional[RegionalHostnameCreateResponse]</a></code>
- <code title="get /zones/{zone_id}/addressing/regional_hostnames">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/addressing/regional_hostname_list_response.py">SyncSinglePage[RegionalHostnameListResponse]</a></code>
- <code title="delete /zones/{zone_id}/addressing/regional_hostnames/{hostname}">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">delete</a>(hostname, \*, zone_id) -> <a href="./src/cloudflare/types/addressing/regional_hostname_delete_response.py">RegionalHostnameDeleteResponse</a></code>
- <code title="patch /zones/{zone_id}/addressing/regional_hostnames/{hostname}">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">edit</a>(hostname, \*, zone_id, \*\*<a href="src/cloudflare/types/addressing/regional_hostname_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/addressing/regional_hostname_edit_response.py">Optional[RegionalHostnameEditResponse]</a></code>
- <code title="get /zones/{zone_id}/addressing/regional_hostnames/{hostname}">client.addressing.regional_hostnames.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regional_hostnames.py">get</a>(hostname, \*, zone_id) -> <a href="./src/cloudflare/types/addressing/regional_hostname_get_response.py">Optional[RegionalHostnameGetResponse]</a></code>

### Regions

Types:

```python
from cloudflare.types.addressing.regional_hostnames import RegionListResponse
```

Methods:

- <code title="get /accounts/{account_id}/addressing/regional_hostnames/regions">client.addressing.regional_hostnames.regions.<a href="./src/cloudflare/resources/addressing/regional_hostnames/regions.py">list</a>(\*, account_id) -> <a href="./src/cloudflare/types/addressing/regional_hostnames/region_list_response.py">SyncSinglePage[RegionListResponse]</a></code>

## Services

Types:
Expand Down
33 changes: 0 additions & 33 deletions src/cloudflare/resources/addressing/regional_hostnames/__init__.py

This file was deleted.

Loading
Loading