Skip to content

Commit 8b2b6d3

Browse files
authored
Merge pull request #2716 from cloudflare/release-please--branches--main--changes--next
release: 5.2.0
2 parents 1384b2c + 5466fc1 commit 8b2b6d3

385 files changed

Lines changed: 35385 additions & 1185 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ jobs:
9797
run: ./scripts/bootstrap
9898

9999
- name: Run tests
100+
continue-on-error: true
100101
run: ./scripts/test
101102
env:
102103
UV_PYTHON: ">=3.9.0"
103104

104105
examples:
105106
timeout-minutes: 10
106107
name: examples
108+
continue-on-error: true
107109
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
108110
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
109111

.github/workflows/detect-breaking-changes.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
detect_breaking_changes:
1010
runs-on: 'ubuntu-latest'
1111
name: detect-breaking-changes
12-
if: false
1312
permissions:
1413
contents: read
1514
steps:
@@ -29,10 +28,12 @@ jobs:
2928
- name: Install dependencies
3029
run: uv sync --all-extras
3130
- name: Detect removed symbols
31+
continue-on-error: true
3232
run: |
3333
uv run python scripts/detect-breaking-changes.py "${{ github.event.pull_request.base.sha }}"
3434
3535
- name: Detect breaking changes
36+
continue-on-error: true
3637
run: |
3738
# Try to check out previous versions of the breaking change detection script. This ensures that
3839
# we still detect breaking changes when entire files and their tests are removed.

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
publish:
1313
name: publish
14+
permissions:
15+
contents: read
1416
runs-on: ubuntu-latest
1517

1618
steps:

.github/workflows/release-doctor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ concurrency:
1313
jobs:
1414
release_doctor:
1515
name: release doctor
16+
permissions:
17+
contents: read
1618
runs-on: ubuntu-latest
1719
timeout-minutes: 2
1820
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

.github/workflows/semgrep.yml

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
1-
name: Semgrep OSS scan
21
on:
3-
pull_request: {}
4-
push:
5-
branches: [main, master]
62
workflow_dispatch: {}
73
schedule:
8-
- cron: '0 0 15 * *'
9-
concurrency:
10-
group: semgrep-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
11-
cancel-in-progress: true
12-
permissions:
13-
contents: read
4+
- cron: '0 4 * * *'
5+
name: Semgrep config
146
jobs:
157
semgrep:
16-
name: semgrep-oss
17-
runs-on: ubuntu-slim
18-
timeout-minutes: 25
8+
name: semgrep/ci
9+
permissions:
10+
contents: read
11+
runs-on: ubuntu-latest
12+
env:
13+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
14+
SEMGREP_URL: https://cloudflare.semgrep.dev
15+
SEMGREP_APP_URL: https://cloudflare.semgrep.dev
16+
SEMGREP_VERSION_CHECK_URL: https://cloudflare.semgrep.dev/api/check-version
17+
container:
18+
image: returntocorp/semgrep
1919
steps:
20-
- uses: actions/checkout@v5
21-
with:
22-
fetch-depth: 1
23-
- id: cache-semgrep
24-
uses: actions/cache@v5
25-
with:
26-
path: ~/.local
27-
key: semgrep-1.160.0-${{ runner.os }}
28-
- if: steps.cache-semgrep.outputs.cache-hit != 'true'
29-
run: pip install --user semgrep==1.160.0
30-
- run: echo "$HOME/.local/bin" >> "$GITHUB_PATH"
31-
- run: semgrep scan --config=auto
20+
- uses: actions/checkout@v4
21+
- run: semgrep ci

.github/workflows/sync-labels.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- .github/labels.yml
99
jobs:
1010
build:
11+
permissions:
12+
issues: write # action-label-syncer creates/updates repo labels
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@v2

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "5.1.0"
2+
".": "5.2.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2204
1+
configured_endpoints: 2277
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: e722ad1f58e3dfb3a928cf9890d48da4
4-
config_hash: ff549978909de2badc92845fea964f4b
3+
openapi_spec_hash: c0d553c22ef1e807dd815f71023050f4
4+
config_hash: 245f966442f3af14c23b79cbfdf06161

CHANGELOG-v5.1.0.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
## 5.1.0 (2026-05-04)
2+
3+
Full Changelog: [v5.0.0...v5.1.0](https://github.com/cloudflare/cloudflare-python/compare/v5.0.0...v5.1.0)
4+
5+
### Features
6+
7+
* **security_center:** add `audit_logs`, `classification`, and `context` sub-resources to insights ([ed7d261](https://github.com/cloudflare/cloudflare-python/commit/ed7d261e6))
8+
* **zero_trust:** add `deployment_groups` sub-resource to devices ([7121a55](https://github.com/cloudflare/cloudflare-python/commit/7121a55d3))
9+
* **aisearch:** update generated types and methods ([54b87759](https://github.com/cloudflare/cloudflare-python/commit/54b87759b))
10+
* **email_security:** update generated types and methods ([23a979df](https://github.com/cloudflare/cloudflare-python/commit/23a979df2))
11+
* **radar:** update generated types and methods ([b48274ef](https://github.com/cloudflare/cloudflare-python/commit/b48274ef7))
12+
* **zones:** update generated types and methods ([f0a54099](https://github.com/cloudflare/cloudflare-python/commit/f0a540997))
13+
14+
#### Security Center - New Insights Sub-Resources
15+
16+
**AuditLogs** (`client.security_center.insights.audit_logs`)
17+
18+
- `list(*, account_id, zone_id, **params) -> SyncCursorPagination[AuditLogListResponse]`
19+
- `list_by_insight(issue_id, *, account_id, zone_id, **params) -> SyncCursorPagination[AuditLogListByInsightResponse]`
20+
21+
New types:
22+
```python
23+
from cloudflare.types.security_center.insights import (
24+
AuditLogListResponse,
25+
AuditLogListByInsightResponse,
26+
)
27+
```
28+
29+
**Classification** (`client.security_center.insights.classification`)
30+
31+
- `update(issue_id, *, account_id, zone_id, **params) -> ClassificationUpdateResponse`
32+
33+
New types:
34+
```python
35+
from cloudflare.types.security_center.insights import ClassificationUpdateResponse
36+
```
37+
38+
**Context** (`client.security_center.insights.context`)
39+
40+
- `get(issue_id, *, account_id) -> Optional[ContextGetResponse]`
41+
42+
New types:
43+
```python
44+
from cloudflare.types.security_center.insights import ContextGetResponse
45+
```
46+
47+
#### Zero Trust - Device Deployment Groups
48+
49+
New sub-resource `client.zero_trust.devices.deployment_groups`:
50+
51+
- `create(*, account_id, **params) -> DeploymentGroup`
52+
- `list(*, account_id, **params) -> SyncV4PagePaginationArray[DeploymentGroup]`
53+
- `delete(group_id, *, account_id) -> DeploymentGroupDeleteResponse`
54+
- `edit(group_id, *, account_id, **params) -> DeploymentGroup`
55+
- `get(group_id, *, account_id) -> DeploymentGroup`
56+
57+
New types:
58+
```python
59+
from cloudflare.types.zero_trust.devices import DeploymentGroup, DeploymentGroupDeleteResponse
60+
```

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Changelog
22

3+
## 5.2.0 (2026-05-21)
4+
5+
Full Changelog: [v5.1.0...v5.2.0](https://github.com/cloudflare/cloudflare-python/compare/v5.1.0...v5.2.0)
6+
7+
### Features
8+
9+
* **ai_gateway:** update generated types and methods ([4923bbb](https://github.com/cloudflare/cloudflare-python/commit/4923bbb97bb42db7e8a6ae54cfa29d2e5bd99d47))
10+
* **ai_security:** add ai_security resource ([29cb585](https://github.com/cloudflare/cloudflare-python/commit/29cb58506942df30e0cb087f2d7f211a53360d05))
11+
* **cache:** update generated types and methods ([b7ae845](https://github.com/cloudflare/cloudflare-python/commit/b7ae845ad230f7db0aebfa30f84e6c7c0266278d))
12+
* **ddos_protection:** add ddos_protection resource ([87f7e95](https://github.com/cloudflare/cloudflare-python/commit/87f7e95e47142d94642fa3ae865559b6c3af989b))
13+
* **load_balancers:** update generated types and methods ([bb6815d](https://github.com/cloudflare/cloudflare-python/commit/bb6815d0212081da8f2e0e834d6d30e5fce78c41))
14+
* **r2:** update generated types and methods ([72d2149](https://github.com/cloudflare/cloudflare-python/commit/72d2149e5b7905c4caf266dbefffa626eb4c2d13))
15+
* **radar:** update generated types and methods ([fb2f0c4](https://github.com/cloudflare/cloudflare-python/commit/fb2f0c41d93bf66b8fff170e460ab79d19fc9fbb))
16+
* **secrets_store:** update generated types and methods ([636414f](https://github.com/cloudflare/cloudflare-python/commit/636414fc201aba49dc31e544f024a67a1e7b5082))
17+
* **workers_for_platforms:** update generated types and methods ([7bfed3c](https://github.com/cloudflare/cloudflare-python/commit/7bfed3ced962e765b884e68ae4c1c48e56e1b6b5))
18+
* **workers:** update generated types and methods ([0bdb685](https://github.com/cloudflare/cloudflare-python/commit/0bdb6858af43a110a91a5d770b69367aca922117))
19+
* **zero_trust:** update generated types and methods ([aeff7d5](https://github.com/cloudflare/cloudflare-python/commit/aeff7d56432a1f6844b310f9ce7fca9ac09da5e5))
20+
21+
22+
### Chores
23+
24+
* **acm:** update generated types and methods ([8b03b3d](https://github.com/cloudflare/cloudflare-python/commit/8b03b3dc081c0fa7cf6bbaca188927379c418b93))
25+
* **ai:** update generated types and methods ([2f6bdf7](https://github.com/cloudflare/cloudflare-python/commit/2f6bdf7476969dad83fe85c0ae493d7b3f4fa58c))
26+
* **api_gateway:** update generated types and methods ([5b79a34](https://github.com/cloudflare/cloudflare-python/commit/5b79a34891fe355456e1decebcf462ac1e171ff5))
27+
* **cloudforce_one:** update generated types and methods ([fc72368](https://github.com/cloudflare/cloudflare-python/commit/fc723685b90eafb8a2f232c72e6f03dd4ad2f823))
28+
* **d1:** update generated types and methods ([6a05b68](https://github.com/cloudflare/cloudflare-python/commit/6a05b682b6b8a3d1bc64440de52a17d4e8df9034))
29+
* **email_security:** update generated types and methods ([c89d1ce](https://github.com/cloudflare/cloudflare-python/commit/c89d1ceeb880ff26c06707731b17e4f2e7041b3d))
30+
* **intel:** update generated types and methods ([b097e5d](https://github.com/cloudflare/cloudflare-python/commit/b097e5d93a5a3c2626088a2132d75625755c2141))
31+
* **logpush:** update generated types and methods ([f26713b](https://github.com/cloudflare/cloudflare-python/commit/f26713be3354fc403b062b15d0c191fadec283d0))
32+
* **resource_sharing:** update generated types and methods ([792bf24](https://github.com/cloudflare/cloudflare-python/commit/792bf248ba72dfc93e5bc4b79734475ece24d52b))
33+
* restore version ([9f99d4b](https://github.com/cloudflare/cloudflare-python/commit/9f99d4b9d86612713073afd9144de0512df6442b))
34+
* sync shared codegen files from staging-next ([fbb556c](https://github.com/cloudflare/cloudflare-python/commit/fbb556c19cb25f308ba43c94959c669b772f6663))
35+
336
## 5.1.0 (2026-05-06)
437

538
Full Changelog: [v5.0.0...v5.1.0](https://github.com/cloudflare/cloudflare-python/compare/v5.0.0...v5.1.0)

0 commit comments

Comments
 (0)