Skip to content

release: 4.2.0 #2654

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

Open
wants to merge 843 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
843 commits
Select commit Hold shift + click to select a range
a40f437
codegen metadata
stainless-app[bot] May 6, 2025
1c2fb5a
chore: broadly detect json family of content-type headers
stainless-app[bot] May 6, 2025
5cbdb5e
feat(api): api update
stainless-app[bot] May 6, 2025
d61b25a
feat(api): api update
stainless-app[bot] May 6, 2025
37004e6
codegen metadata
stainless-app[bot] May 6, 2025
d045812
codegen metadata
stainless-app[bot] May 6, 2025
e227698
codegen metadata
stainless-app[bot] May 6, 2025
b2cfa5d
feat(api): api update
stainless-app[bot] May 6, 2025
4a847fe
codegen metadata
stainless-app[bot] May 6, 2025
d2136c3
codegen metadata
stainless-app[bot] May 6, 2025
8b3c388
codegen metadata
stainless-app[bot] May 6, 2025
e3ba5c1
codegen metadata
stainless-app[bot] May 6, 2025
4f4710e
codegen metadata
stainless-app[bot] May 6, 2025
66684b6
codegen metadata
stainless-app[bot] May 6, 2025
e749879
feat(api): api update
stainless-app[bot] May 6, 2025
af68ef6
feat(api): api update
stainless-app[bot] May 6, 2025
d391777
codegen metadata
stainless-app[bot] May 6, 2025
3697eac
codegen metadata
stainless-app[bot] May 6, 2025
71efbfa
feat(api): api update
stainless-app[bot] May 6, 2025
d078d82
codegen metadata
stainless-app[bot] May 6, 2025
9ca549e
feat(api): api update
stainless-app[bot] May 6, 2025
3f6045d
codegen metadata
stainless-app[bot] May 6, 2025
676ac08
feat(api): api update
stainless-app[bot] May 6, 2025
97ed9b2
codegen metadata
stainless-app[bot] May 6, 2025
0d61d2a
codegen metadata
stainless-app[bot] May 6, 2025
0732d2b
codegen metadata
stainless-app[bot] May 6, 2025
775028a
codegen metadata
stainless-app[bot] May 6, 2025
d04eeca
codegen metadata
stainless-app[bot] May 6, 2025
ba2b47a
feat(api): api update
stainless-app[bot] May 6, 2025
9edf66c
codegen metadata
stainless-app[bot] May 6, 2025
3119294
codegen metadata
stainless-app[bot] May 6, 2025
37c83d5
codegen metadata
stainless-app[bot] May 6, 2025
6c59fd5
codegen metadata
stainless-app[bot] May 6, 2025
62394cb
codegen metadata
stainless-app[bot] May 6, 2025
8812e3c
codegen metadata
stainless-app[bot] May 6, 2025
1a5cf12
codegen metadata
stainless-app[bot] May 6, 2025
f8baa75
codegen metadata
stainless-app[bot] May 6, 2025
bf6d4b9
codegen metadata
stainless-app[bot] May 6, 2025
20295df
feat(api): api update
stainless-app[bot] May 6, 2025
3a3462d
codegen metadata
stainless-app[bot] May 6, 2025
0306df1
codegen metadata
stainless-app[bot] May 6, 2025
1fbd77b
codegen metadata
stainless-app[bot] May 6, 2025
a99b147
codegen metadata
stainless-app[bot] May 6, 2025
a2ddb17
codegen metadata
stainless-app[bot] May 6, 2025
0c6f4a1
feat(api): api update
stainless-app[bot] May 6, 2025
23d7f1c
feat(api): api update
stainless-app[bot] May 6, 2025
2b51c9c
codegen metadata
stainless-app[bot] May 6, 2025
e4c01bc
codegen metadata
stainless-app[bot] May 6, 2025
db99f31
codegen metadata
stainless-app[bot] May 6, 2025
86f69ea
codegen metadata
stainless-app[bot] May 6, 2025
305bc1d
codegen metadata
stainless-app[bot] May 6, 2025
ff60f91
codegen metadata
stainless-app[bot] May 6, 2025
d1f26b4
codegen metadata
stainless-app[bot] May 6, 2025
ff1a177
codegen metadata
stainless-app[bot] May 6, 2025
0e950d6
feat(api): api update
stainless-app[bot] May 6, 2025
03e9458
codegen metadata
stainless-app[bot] May 6, 2025
d546ce8
codegen metadata
stainless-app[bot] May 6, 2025
33327c7
codegen metadata
stainless-app[bot] May 6, 2025
d7b7407
codegen metadata
stainless-app[bot] May 6, 2025
82c2987
codegen metadata
stainless-app[bot] May 6, 2025
ad8b7f2
codegen metadata
stainless-app[bot] May 6, 2025
bd2ff86
codegen metadata
stainless-app[bot] May 6, 2025
039e41c
codegen metadata
stainless-app[bot] May 6, 2025
4d3b7b7
codegen metadata
stainless-app[bot] May 6, 2025
40f0ef1
codegen metadata
stainless-app[bot] May 6, 2025
0b00d97
feat(api): api update
stainless-app[bot] May 6, 2025
d362693
codegen metadata
stainless-app[bot] May 6, 2025
a989c2b
codegen metadata
stainless-app[bot] May 6, 2025
220dd05
codegen metadata
stainless-app[bot] May 6, 2025
ee8f1e3
codegen metadata
stainless-app[bot] May 6, 2025
17f7fc5
codegen metadata
stainless-app[bot] May 6, 2025
fdc3e41
codegen metadata
stainless-app[bot] May 6, 2025
6750cf3
feat(api): api update
stainless-app[bot] May 6, 2025
9fe503b
codegen metadata
stainless-app[bot] May 6, 2025
8cac6ad
codegen metadata
stainless-app[bot] May 6, 2025
fcfe4fe
codegen metadata
stainless-app[bot] May 6, 2025
ea379f5
codegen metadata
stainless-app[bot] May 6, 2025
1a5e6ff
codegen metadata
stainless-app[bot] May 6, 2025
ecc0b17
feat(api): api update
stainless-app[bot] May 6, 2025
19019e2
codegen metadata
stainless-app[bot] May 6, 2025
75e914b
codegen metadata
stainless-app[bot] May 6, 2025
ed77a9c
codegen metadata
stainless-app[bot] May 6, 2025
c05d148
codegen metadata
stainless-app[bot] May 6, 2025
1483741
codegen metadata
stainless-app[bot] May 6, 2025
94d09b8
codegen metadata
stainless-app[bot] May 6, 2025
c364ea9
codegen metadata
stainless-app[bot] May 6, 2025
f49710a
codegen metadata
stainless-app[bot] May 6, 2025
1a4aa1b
codegen metadata
stainless-app[bot] May 6, 2025
a7f790a
codegen metadata
stainless-app[bot] May 6, 2025
9579625
codegen metadata
stainless-app[bot] May 6, 2025
d2d1c24
feat(api): update path placeholders
stainless-app[bot] May 6, 2025
faafd4e
codegen metadata
stainless-app[bot] May 6, 2025
04834e7
feat(api): api update
stainless-app[bot] May 6, 2025
07074f1
feat(api): api update
stainless-app[bot] May 6, 2025
5667406
codegen metadata
stainless-app[bot] May 6, 2025
7c07fb2
codegen metadata
stainless-app[bot] May 6, 2025
11d079b
codegen metadata
stainless-app[bot] May 6, 2025
58eae89
codegen metadata
stainless-app[bot] May 6, 2025
71032c2
codegen metadata
stainless-app[bot] May 6, 2025
19aec0a
codegen metadata
stainless-app[bot] May 6, 2025
d18dee3
codegen metadata
stainless-app[bot] May 6, 2025
8f5755f
codegen metadata
stainless-app[bot] May 6, 2025
7701fc5
codegen metadata
stainless-app[bot] May 6, 2025
afabde3
codegen metadata
stainless-app[bot] May 6, 2025
6aa431d
codegen metadata
stainless-app[bot] May 6, 2025
7e458e7
feat(api): api update
stainless-app[bot] May 6, 2025
dd52a57
codegen metadata
stainless-app[bot] May 6, 2025
fceef0c
codegen metadata
stainless-app[bot] May 6, 2025
1e0b357
codegen metadata
stainless-app[bot] May 6, 2025
c6ce780
codegen metadata
stainless-app[bot] May 6, 2025
b2d2377
codegen metadata
stainless-app[bot] May 6, 2025
0c0e90c
codegen metadata
stainless-app[bot] May 6, 2025
c2b6ce1
codegen metadata
stainless-app[bot] May 6, 2025
1788a72
codegen metadata
stainless-app[bot] May 6, 2025
5c405ce
feat(access_settings): add CRUD support
stainless-app[bot] May 6, 2025
7fdb3ac
codegen metadata
stainless-app[bot] May 6, 2025
fdf68a8
codegen metadata
stainless-app[bot] May 6, 2025
e9cab7e
codegen metadata
stainless-app[bot] May 6, 2025
b403b70
codegen metadata
stainless-app[bot] May 6, 2025
4f2fe11
feat(api): api update
stainless-app[bot] May 6, 2025
a13c51d
codegen metadata
stainless-app[bot] May 6, 2025
2248053
codegen metadata
stainless-app[bot] May 6, 2025
d900af3
codegen metadata
stainless-app[bot] May 6, 2025
a45728a
feat(api): api update
stainless-app[bot] May 6, 2025
ecac54c
codegen metadata
stainless-app[bot] May 6, 2025
c189b32
codegen metadata
stainless-app[bot] May 6, 2025
e09e0ee
codegen metadata
stainless-app[bot] May 6, 2025
ef1b563
codegen metadata
stainless-app[bot] May 6, 2025
3f15a22
codegen metadata
stainless-app[bot] May 6, 2025
39426ec
codegen metadata
stainless-app[bot] May 6, 2025
ce7c6e9
codegen metadata
stainless-app[bot] May 6, 2025
f381a98
feat(api): api update
stainless-app[bot] May 6, 2025
ef764d4
feat(api): api update
stainless-app[bot] May 6, 2025
07ab04d
codegen metadata
stainless-app[bot] May 6, 2025
4476835
codegen metadata
stainless-app[bot] May 6, 2025
597c59e
codegen metadata
stainless-app[bot] May 6, 2025
3dc14a1
codegen metadata
stainless-app[bot] May 6, 2025
c29e981
codegen metadata
stainless-app[bot] May 6, 2025
a72fb0a
codegen metadata
stainless-app[bot] May 6, 2025
d094beb
codegen metadata
stainless-app[bot] May 6, 2025
179f185
codegen metadata
stainless-app[bot] May 6, 2025
11b7bbb
codegen metadata
stainless-app[bot] May 6, 2025
3d7b02f
codegen metadata
stainless-app[bot] May 6, 2025
a132738
codegen metadata
stainless-app[bot] May 6, 2025
a5ddb11
codegen metadata
stainless-app[bot] May 6, 2025
fd54a7b
codegen metadata
stainless-app[bot] May 6, 2025
380250f
codegen metadata
stainless-app[bot] May 6, 2025
2828953
codegen metadata
stainless-app[bot] May 6, 2025
720a4f0
codegen metadata
stainless-app[bot] May 6, 2025
f5d07b9
feat(api): api update
stainless-app[bot] May 6, 2025
ad34b4d
codegen metadata
stainless-app[bot] May 6, 2025
84758cf
codegen metadata
stainless-app[bot] May 6, 2025
a6249b7
codegen metadata
stainless-app[bot] May 6, 2025
c4a4eb7
codegen metadata
stainless-app[bot] May 6, 2025
c3cf9ac
codegen metadata
stainless-app[bot] May 6, 2025
5ad6267
feat(api): api update
stainless-app[bot] May 6, 2025
752ed98
codegen metadata
stainless-app[bot] May 6, 2025
461dac6
codegen metadata
stainless-app[bot] May 6, 2025
1bb92c8
codegen metadata
stainless-app[bot] May 6, 2025
649cb24
codegen metadata
stainless-app[bot] May 6, 2025
f6dbb4a
test(api): skip invalid prism assertions
stainless-app[bot] May 6, 2025
c579468
codegen metadata
stainless-app[bot] May 6, 2025
4beeff9
feat(threat_events): add list support
stainless-app[bot] May 6, 2025
701819b
codegen metadata
stainless-app[bot] May 6, 2025
c0baa5f
codegen metadata
stainless-app[bot] May 6, 2025
5fa9150
codegen metadata
stainless-app[bot] May 6, 2025
194e957
codegen metadata
stainless-app[bot] May 6, 2025
1cdbf1c
codegen metadata
stainless-app[bot] May 6, 2025
d1de8e6
codegen metadata
stainless-app[bot] May 6, 2025
92d1bed
codegen metadata
stainless-app[bot] May 6, 2025
17cb705
feat(api): api update
stainless-app[bot] May 6, 2025
d487232
feat(api): api update
stainless-app[bot] May 6, 2025
d0e8d73
codegen metadata
stainless-app[bot] May 6, 2025
552d99d
codegen metadata
stainless-app[bot] May 6, 2025
ba166b3
feat(api): api update
stainless-app[bot] May 6, 2025
2d00c50
codegen metadata
stainless-app[bot] May 6, 2025
577f8f6
codegen metadata
stainless-app[bot] May 6, 2025
5901900
feat(api): api update
stainless-app[bot] May 6, 2025
6c7acdc
codegen metadata
stainless-app[bot] May 6, 2025
b234613
codegen metadata
stainless-app[bot] May 6, 2025
84b83b5
codegen metadata
stainless-app[bot] May 6, 2025
be32215
feat(api): api update
stainless-app[bot] May 6, 2025
c8a0db8
fix(api): fix path placeholders
stainless-app[bot] May 6, 2025
8c5439c
codegen metadata
stainless-app[bot] May 6, 2025
b895d14
codegen metadata
stainless-app[bot] May 6, 2025
edfddf3
feat(api): api update
stainless-app[bot] May 6, 2025
1daf1c2
codegen metadata
stainless-app[bot] May 6, 2025
7b3a51b
feat(schema_validation): add mapped endpoints
stainless-app[bot] May 6, 2025
03e79c1
feat(api): api update
stainless-app[bot] May 6, 2025
bfc0dd8
codegen metadata
stainless-app[bot] May 6, 2025
5fe7ea9
fix(urlscanner): don't unwwrap scan response
stainless-app[bot] May 6, 2025
649d203
codegen metadata
stainless-app[bot] May 6, 2025
ad8c04d
codegen metadata
stainless-app[bot] May 6, 2025
15854a9
codegen metadata
stainless-app[bot] May 7, 2025
1e88f50
codegen metadata
stainless-app[bot] May 7, 2025
bf8e983
codegen metadata
stainless-app[bot] May 7, 2025
6b721a6
codegen metadata
stainless-app[bot] May 7, 2025
0cdd87f
codegen metadata
stainless-app[bot] May 7, 2025
703aae6
codegen metadata
stainless-app[bot] May 8, 2025
b1fdd11
chore(internal): codegen related update
stainless-app[bot] May 8, 2025
7b734a1
chore(internal): avoid errors for isinstance checks on proxies
stainless-app[bot] May 8, 2025
7e46269
fix(package): support direct resource imports
stainless-app[bot] May 9, 2025
977d5c7
feat(device_settings): swap list to get endpoint
stainless-app[bot] May 13, 2025
1675067
codegen metadata
stainless-app[bot] May 13, 2025
1062bfb
codegen metadata
stainless-app[bot] May 13, 2025
88f8c8a
codegen metadata
stainless-app[bot] May 14, 2025
2914707
feat(api): api update
stainless-app[bot] May 14, 2025
b79fd2f
codegen metadata
stainless-app[bot] May 14, 2025
bb4bd21
feat(api): api update
stainless-app[bot] May 14, 2025
644a419
codegen metadata
stainless-app[bot] May 14, 2025
e75c6eb
codegen metadata
stainless-app[bot] May 14, 2025
1685ab7
codegen metadata
stainless-app[bot] May 14, 2025
900a341
codegen metadata
stainless-app[bot] May 14, 2025
5366c80
codegen metadata
stainless-app[bot] May 14, 2025
e424320
codegen metadata
stainless-app[bot] May 14, 2025
1739dc8
codegen metadata
stainless-app[bot] May 14, 2025
381bce7
codegen metadata
stainless-app[bot] May 14, 2025
4ed5e61
codegen metadata
stainless-app[bot] May 14, 2025
591f73d
codegen metadata
stainless-app[bot] May 14, 2025
253d1ad
codegen metadata
stainless-app[bot] May 14, 2025
a8b57a5
codegen metadata
stainless-app[bot] May 14, 2025
cb7a1ca
codegen metadata
stainless-app[bot] May 14, 2025
3b99726
codegen metadata
stainless-app[bot] May 14, 2025
6e80064
codegen metadata
stainless-app[bot] May 14, 2025
c8af26d
chore(ci): upload sdks to package manager
stainless-app[bot] May 14, 2025
0c6081a
codegen metadata
stainless-app[bot] May 14, 2025
db8e930
codegen metadata
stainless-app[bot] May 15, 2025
e4d4ff5
feat(api): manual updates
stainless-app[bot] May 15, 2025
6fa22ed
feat(api): manual updates
stainless-app[bot] May 15, 2025
b5e03a6
codegen metadata
stainless-app[bot] May 15, 2025
a9bc47f
chore(ci): fix installation instructions
stainless-app[bot] May 15, 2025
1a92d19
codegen metadata
stainless-app[bot] May 15, 2025
3afa589
codegen metadata
stainless-app[bot] May 15, 2025
d1ff3b0
codegen metadata
stainless-app[bot] May 15, 2025
a40a899
codegen metadata
stainless-app[bot] May 15, 2025
67a7cb1
codegen metadata
stainless-app[bot] May 15, 2025
62c78b4
codegen metadata
stainless-app[bot] May 15, 2025
b29892e
codegen metadata
stainless-app[bot] May 15, 2025
7037626
codegen metadata
stainless-app[bot] May 15, 2025
ee0f955
codegen metadata
stainless-app[bot] May 15, 2025
bcca754
codegen metadata
stainless-app[bot] May 15, 2025
a92fc62
codegen metadata
stainless-app[bot] May 15, 2025
e725155
codegen metadata
stainless-app[bot] May 15, 2025
7d694e1
codegen metadata
stainless-app[bot] May 15, 2025
bc7133d
feat(api): api update
stainless-app[bot] May 15, 2025
d7201d2
codegen metadata
stainless-app[bot] May 15, 2025
de6f1d0
codegen metadata
stainless-app[bot] May 15, 2025
91316ee
feat(api): api update
stainless-app[bot] May 15, 2025
f97b094
codegen metadata
stainless-app[bot] May 15, 2025
06d438f
release: 4.2.0
stainless-app[bot] May 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 37 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@ name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
- next
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5

runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -36,11 +35,34 @@ jobs:
- name: Run lints
run: ./scripts/lint

upload:
if: github.repository == 'stainless-sdks/cloudflare-python'
timeout-minutes: 10
name: upload
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest
timeout-minutes: 30

runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -59,9 +81,10 @@ jobs:
run: ./scripts/test

examples:
timeout-minutes: 10
name: examples
runs-on: ubuntu-latest
timeout-minutes: 5
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.repository == 'cloudflare/cloudflare-python'

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.1.0"
".": "4.2.0"
}
6 changes: 4 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 1655
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ed9f898b31619623e50d660d04beca50e44987bfd3eb3a6ff98d3bca2a9c569.yml
configured_endpoints: 1739
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-845f804141f01edfcce598436ef1e94b17a4281624186c9728108732936bcb5a.yml
openapi_spec_hash: 71b329a117f0bfc0378e1ce68fab7874
config_hash: 428cd5372293bd6f28ee41c3a277c71b
83 changes: 83 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,88 @@
# Changelog

## 4.2.0 (2025-05-15)

Full Changelog: [v4.1.0...v4.2.0](https://github.com/cloudflare/cloudflare-python/compare/v4.1.0...v4.2.0)

### Features

* **access_settings:** add CRUD support ([5c405ce](https://github.com/cloudflare/cloudflare-python/commit/5c405cef8664b45d6d85b3676db276e5712469b9))
* **api:** api update ([91316ee](https://github.com/cloudflare/cloudflare-python/commit/91316eea8a9d0a4780c65ad1680de3f357113d62))
* **api:** api update ([bc7133d](https://github.com/cloudflare/cloudflare-python/commit/bc7133dd7f5fe6845d885e7e6727bfe6682ea441))
* **api:** api update ([bb4bd21](https://github.com/cloudflare/cloudflare-python/commit/bb4bd218a1ae33d9dc4aea68975570a9c4255db0))
* **api:** api update ([2914707](https://github.com/cloudflare/cloudflare-python/commit/29147073fa048ad2758fb72f6190ef8b7cb0b7e7))
* **api:** api update ([03e79c1](https://github.com/cloudflare/cloudflare-python/commit/03e79c10da77b35afe7915ccb9eb560339841cae))
* **api:** api update ([edfddf3](https://github.com/cloudflare/cloudflare-python/commit/edfddf31cf1cbc233e90341c3786bbcd873a72ea))
* **api:** api update ([be32215](https://github.com/cloudflare/cloudflare-python/commit/be32215fc9f229ae6f61ab072bb4ebb3de4109f7))
* **api:** api update ([5901900](https://github.com/cloudflare/cloudflare-python/commit/59019001da4fe85b326000e37df0e5cb61375945))
* **api:** api update ([ba166b3](https://github.com/cloudflare/cloudflare-python/commit/ba166b369840ade49924dff938115976e3867a5c))
* **api:** api update ([d487232](https://github.com/cloudflare/cloudflare-python/commit/d487232e264c310345b3ea85822e550af252c0a4))
* **api:** api update ([17cb705](https://github.com/cloudflare/cloudflare-python/commit/17cb705744d081357d5f9c418ec3dfb45df60110))
* **api:** api update ([5ad6267](https://github.com/cloudflare/cloudflare-python/commit/5ad6267fc27d8b5bdba1b5dc570528517ab58b9f))
* **api:** api update ([f5d07b9](https://github.com/cloudflare/cloudflare-python/commit/f5d07b9dc10febfd488f5955b750820681b6ca33))
* **api:** api update ([ef764d4](https://github.com/cloudflare/cloudflare-python/commit/ef764d481e5d0f305e887218feb8ccbcdfe2d220))
* **api:** api update ([f381a98](https://github.com/cloudflare/cloudflare-python/commit/f381a9801f7adedb2738da815b891db8dcd3d26a))
* **api:** api update ([a45728a](https://github.com/cloudflare/cloudflare-python/commit/a45728adfa9f6048f93f97fe99c63fae8e2847d3))
* **api:** api update ([4f2fe11](https://github.com/cloudflare/cloudflare-python/commit/4f2fe11cd2be909af128e9d1d8278a96ff4a9456))
* **api:** api update ([7e458e7](https://github.com/cloudflare/cloudflare-python/commit/7e458e7669fb07b0987b7253ef7e010a52164e90))
* **api:** api update ([07074f1](https://github.com/cloudflare/cloudflare-python/commit/07074f15880e4ad944381ee7556740d34cb4de4d))
* **api:** api update ([04834e7](https://github.com/cloudflare/cloudflare-python/commit/04834e7b5f2c48f81df53ae502d57de5846b2fd0))
* **api:** api update ([ecc0b17](https://github.com/cloudflare/cloudflare-python/commit/ecc0b17e46459f45715591ab8a9c42fa53f58ae5))
* **api:** api update ([6750cf3](https://github.com/cloudflare/cloudflare-python/commit/6750cf364f95deae9cbfcf7755a5f470d11d82fb))
* **api:** api update ([0b00d97](https://github.com/cloudflare/cloudflare-python/commit/0b00d971c8df169d5c3985a70bd05f345339adea))
* **api:** api update ([0e950d6](https://github.com/cloudflare/cloudflare-python/commit/0e950d65a750fb3741d8728c980e804d658c0306))
* **api:** api update ([23d7f1c](https://github.com/cloudflare/cloudflare-python/commit/23d7f1ca8fda9c31fb1a5ce80ca815d01752e3d7))
* **api:** api update ([0c6f4a1](https://github.com/cloudflare/cloudflare-python/commit/0c6f4a1c252af1b1da345bea53d0d85939950b23))
* **api:** api update ([20295df](https://github.com/cloudflare/cloudflare-python/commit/20295df8880c0b22da4ba89d845fcb3d99490021))
* **api:** api update ([ba2b47a](https://github.com/cloudflare/cloudflare-python/commit/ba2b47ac123e37d4043fe2d74a510ad3202bac7f))
* **api:** api update ([676ac08](https://github.com/cloudflare/cloudflare-python/commit/676ac089f6b52fc9d26785684e88b74ae74dceb9))
* **api:** api update ([9ca549e](https://github.com/cloudflare/cloudflare-python/commit/9ca549e242e8e5f537b951c4c24189491928e9f4))
* **api:** api update ([71efbfa](https://github.com/cloudflare/cloudflare-python/commit/71efbfaf56891305d123d4078f48101fb0c608fe))
* **api:** api update ([af68ef6](https://github.com/cloudflare/cloudflare-python/commit/af68ef6ac477d9305391318ea5e033f6e111c00e))
* **api:** api update ([e749879](https://github.com/cloudflare/cloudflare-python/commit/e749879ab0abb0e2383c07efb2f0f546682d9ce7))
* **api:** api update ([b2cfa5d](https://github.com/cloudflare/cloudflare-python/commit/b2cfa5d06466c1a5903d4b159828abdc36b3d0e9))
* **api:** api update ([d61b25a](https://github.com/cloudflare/cloudflare-python/commit/d61b25a7e26214012fe5ba727f61a2d877bca5b6))
* **api:** api update ([5cbdb5e](https://github.com/cloudflare/cloudflare-python/commit/5cbdb5e773b35acf782cfd9dce7a9e329a76e3fa))
* **api:** api update ([563ea64](https://github.com/cloudflare/cloudflare-python/commit/563ea64e06093ecd8067b9b19b76cd0e0b2f3e0a))
* **api:** api update ([be46746](https://github.com/cloudflare/cloudflare-python/commit/be4674648edd2531fe08164f8367ac63ee385f7e))
* **api:** api update ([6834a83](https://github.com/cloudflare/cloudflare-python/commit/6834a831237c3031f51387e06881c23e41343dd6))
* **api:** api update ([e9809cf](https://github.com/cloudflare/cloudflare-python/commit/e9809cfbae5a4d4217a40739e2d15551d8fa872d))
* **api:** api update ([fff82c3](https://github.com/cloudflare/cloudflare-python/commit/fff82c307f3da3f65131679f6ae9de77289fe954))
* **api:** api update ([885373e](https://github.com/cloudflare/cloudflare-python/commit/885373e61028d0368bf3fb963f7afa0cdbe9c6ee))
* **api:** api update ([7d76f9d](https://github.com/cloudflare/cloudflare-python/commit/7d76f9d101f9a8e9d7c6951fcdad2b6e72a8a614))
* **api:** api update ([204b88a](https://github.com/cloudflare/cloudflare-python/commit/204b88ab272a6dcd70a00c7c8941af2d9e77146d))
* **api:** api update ([8aef594](https://github.com/cloudflare/cloudflare-python/commit/8aef5949b2f1a426ecb54d4af52dcd806b886f65))
* **api:** manual updates ([6fa22ed](https://github.com/cloudflare/cloudflare-python/commit/6fa22edc2ef43217056a5b0675753cb2341554aa))
* **api:** manual updates ([e4d4ff5](https://github.com/cloudflare/cloudflare-python/commit/e4d4ff5267aade48da6bddfece3b6d52fb473c26))
* **api:** update path placeholders ([d2d1c24](https://github.com/cloudflare/cloudflare-python/commit/d2d1c246d0c650e565057f1b98c40054aa693f12))
* **device_settings:** swap list to get endpoint ([977d5c7](https://github.com/cloudflare/cloudflare-python/commit/977d5c72013c3c55bc235512ec619f90efa7bfc2))
* **schema_validation:** add mapped endpoints ([7b3a51b](https://github.com/cloudflare/cloudflare-python/commit/7b3a51bc157feccbaee5b22dff61469849bcbf3f))
* **threat_events:** add list support ([4beeff9](https://github.com/cloudflare/cloudflare-python/commit/4beeff9c87058ce7cb972b2f3826d127775d21eb))


### Bug Fixes

* **api:** fix path placeholders ([c8a0db8](https://github.com/cloudflare/cloudflare-python/commit/c8a0db8796322dc391619b9a76c8ce3f551eba2a))
* **package:** support direct resource imports ([7e46269](https://github.com/cloudflare/cloudflare-python/commit/7e4626961b5c2a425cdee53a2062dcc1fe14f7cd))
* **pydantic v1:** more robust ModelField.annotation check ([012add4](https://github.com/cloudflare/cloudflare-python/commit/012add4d67ec2fbb2b743ff4cec3297b0077ec2d))
* **urlscanner:** don't unwwrap scan response ([5fe7ea9](https://github.com/cloudflare/cloudflare-python/commit/5fe7ea9b5b31ace57ed670a65c4b276fba5eee18))


### Chores

* broadly detect json family of content-type headers ([1c2fb5a](https://github.com/cloudflare/cloudflare-python/commit/1c2fb5a49f8efc69902f0a3dd447b9c911334b6b))
* **ci:** add timeout thresholds for CI jobs ([b38f0ac](https://github.com/cloudflare/cloudflare-python/commit/b38f0ace9ae9a04890c306198335fc44a403d1a3))
* **ci:** fix installation instructions ([a9bc47f](https://github.com/cloudflare/cloudflare-python/commit/a9bc47fb44bcaf750eb579c327f6a86bf18c6395))
* **ci:** only use depot for staging repos ([8fea9cb](https://github.com/cloudflare/cloudflare-python/commit/8fea9cb064f975e3cabb5f5f8b77c9528fdad40b))
* **ci:** run on more branches and use depot runners ([67ee23a](https://github.com/cloudflare/cloudflare-python/commit/67ee23a7ac47ea2392068c99a4196b866344bd29))
* **ci:** upload sdks to package manager ([c8af26d](https://github.com/cloudflare/cloudflare-python/commit/c8af26d72d6e0c48acdd9518c42fbfb28809dd45))
* **internal:** avoid errors for isinstance checks on proxies ([7b734a1](https://github.com/cloudflare/cloudflare-python/commit/7b734a186d2ca69066a75956fcc47ccbe02df0b1))
* **internal:** codegen related update ([b1fdd11](https://github.com/cloudflare/cloudflare-python/commit/b1fdd1187e9179cb3fd7c92779140d9b6bdc08fd))
* **internal:** fix list file params ([128fbe6](https://github.com/cloudflare/cloudflare-python/commit/128fbe63aa61e7c7e8834d00cf96135c7cc8a438))
* **internal:** import reformatting ([af978d0](https://github.com/cloudflare/cloudflare-python/commit/af978d029886113c779ad80865bfa320d82b9a7b))
* **internal:** minor formatting changes ([8ca04ea](https://github.com/cloudflare/cloudflare-python/commit/8ca04ea4ae308de10743146ec8c6ba89e2916004))
* **internal:** refactor retries to not use recursion ([baedf67](https://github.com/cloudflare/cloudflare-python/commit/baedf673e48f103406cd609410a71e139efef5d7))

## 4.1.0 (2025-03-18)

Full Changelog: [v4.0.0...v4.1.0](https://github.com/cloudflare/cloudflare-python/compare/v4.0.0...v4.1.0)
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,17 +151,16 @@ from cloudflare import Cloudflare

client = Cloudflare()

account = client.accounts.create(
name="name",
type="standard",
unit={"id": "f267e341f3dd4697bd3b9f71dd96247f"},
zone = client.zones.create(
account={"id": "023e105f4ecef8ad9ca31a8372d0c353"},
name="example.com",
)
print(account.unit)
print(zone.account)
```

## File uploads

Request parameters that correspond to file uploads can be passed as `bytes`, a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.
Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`.

```python
from pathlib import Path
Expand Down
Loading
Loading