mirror of
https://github.com/cloudflare/cloudflare-python.git
synced 2026-01-16 23:01:03 +00:00
Merge pull request #1140 from cloudflare/release-please--branches--main--changes--next
release: 3.1.0
This commit is contained in:
commit
0aed308b80
1331 changed files with 31034 additions and 51481 deletions
|
|
@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
|
|||
|
||||
USER vscode
|
||||
|
||||
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.24.0" RYE_INSTALL_OPTION="--yes" bash
|
||||
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash
|
||||
ENV PATH=/home/vscode/.rye/shims:$PATH
|
||||
|
||||
RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc
|
||||
|
|
|
|||
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -6,6 +6,7 @@ on:
|
|||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- next
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
|
@ -21,7 +22,7 @@ jobs:
|
|||
curl -sSf https://rye.astral.sh/get | bash
|
||||
echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
||||
env:
|
||||
RYE_VERSION: 0.24.0
|
||||
RYE_VERSION: '0.35.0'
|
||||
RYE_INSTALL_OPTION: '--yes'
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
@ -41,7 +42,7 @@ jobs:
|
|||
curl -sSf https://rye.astral.sh/get | bash
|
||||
echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
||||
env:
|
||||
RYE_VERSION: 0.24.0
|
||||
RYE_VERSION: '0.35.0'
|
||||
RYE_INSTALL_OPTION: '--yes'
|
||||
|
||||
- name: Bootstrap
|
||||
|
|
@ -61,8 +62,8 @@ jobs:
|
|||
curl -sSf https://rye.astral.sh/get | bash
|
||||
echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
||||
env:
|
||||
RYE_VERSION: 0.24.0
|
||||
RYE_INSTALL_OPTION: "--yes"
|
||||
RYE_VERSION: '0.35.0'
|
||||
RYE_INSTALL_OPTION: '--yes'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
rye sync --all-features
|
||||
|
|
|
|||
4
.github/workflows/publish-pypi.yml
vendored
4
.github/workflows/publish-pypi.yml
vendored
|
|
@ -21,8 +21,8 @@ jobs:
|
|||
curl -sSf https://rye.astral.sh/get | bash
|
||||
echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
||||
env:
|
||||
RYE_VERSION: 0.24.0
|
||||
RYE_INSTALL_OPTION: "--yes"
|
||||
RYE_VERSION: '0.35.0'
|
||||
RYE_INSTALL_OPTION: '--yes'
|
||||
|
||||
- name: Publish to PyPI
|
||||
run: |
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
.prism.log
|
||||
.vscode
|
||||
_dev
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
".": "3.0.1"
|
||||
".": "3.1.0"
|
||||
}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
configured_endpoints: 1353
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1274668bf5bb40cc6a93aa05b9b1c96050656b905a292bccdb53941f50eaf81e.yml
|
||||
configured_endpoints: 1256
|
||||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-923d8c7667b68c786e6c026c4f4851798943c7d68ea055c0043d9253413c5847.yml
|
||||
|
|
|
|||
307
CHANGELOG.md
307
CHANGELOG.md
|
|
@ -1,5 +1,312 @@
|
|||
# Changelog
|
||||
|
||||
## 3.1.0 (2024-07-16)
|
||||
|
||||
Full Changelog: [v3.0.1...v3.1.0](https://github.com/cloudflare/cloudflare-python/compare/v3.0.1...v3.1.0)
|
||||
|
||||
### Features
|
||||
|
||||
* **api:** add hash to url_scanner ([28c06a7](https://github.com/cloudflare/cloudflare-python/commit/28c06a7fd33c143e5da9b368b70262677d8c5fb4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f0c26a0](https://github.com/cloudflare/cloudflare-python/commit/f0c26a0b5378ab1e6fb945f9a6cec077d75d8542))
|
||||
* **api:** OpenAPI spec update via Stainless API ([7850e20](https://github.com/cloudflare/cloudflare-python/commit/7850e2040cc1268e175e5ba99385178fa4af153b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e91b45b](https://github.com/cloudflare/cloudflare-python/commit/e91b45b7f35070dfbb431b7090fb5bd3b23cf6ff))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a2433f4](https://github.com/cloudflare/cloudflare-python/commit/a2433f41c70667e2029dc46fa437fc88634a5ed8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([598836d](https://github.com/cloudflare/cloudflare-python/commit/598836dfda80bf10c4ca73b257aeb977eb08bc34))
|
||||
* **api:** OpenAPI spec update via Stainless API ([512203e](https://github.com/cloudflare/cloudflare-python/commit/512203e85899be0c4ccc8190541335079b2bdca2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([cf3b8d9](https://github.com/cloudflare/cloudflare-python/commit/cf3b8d925d286f7c34aeb01e93c42eb7eabcbe57))
|
||||
* **api:** OpenAPI spec update via Stainless API ([cf6bd06](https://github.com/cloudflare/cloudflare-python/commit/cf6bd06c4cf2d58b4ac796653f8dd75390ea068c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ccaeebb](https://github.com/cloudflare/cloudflare-python/commit/ccaeebb547d93eb510b712ef69e34bbd65f5b337))
|
||||
* **api:** OpenAPI spec update via Stainless API ([4346909](https://github.com/cloudflare/cloudflare-python/commit/434690974d3bdaaa34565ba7a26bfe750d16cb9b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([20e4aff](https://github.com/cloudflare/cloudflare-python/commit/20e4aff929e766d279507d97489f5059d5d2b770))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9c895b4](https://github.com/cloudflare/cloudflare-python/commit/9c895b4f42765ea9cc36239c55a3cc3cb59ceac4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([90c3186](https://github.com/cloudflare/cloudflare-python/commit/90c31867607cacc0df92c7522cb87ab0cb1cff5f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([25951ee](https://github.com/cloudflare/cloudflare-python/commit/25951eeb48ae88ce35f9f86116d3cbacc45bc1b2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ca2bde2](https://github.com/cloudflare/cloudflare-python/commit/ca2bde239b915b466b12771884e89b280dd3065a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c2e0647](https://github.com/cloudflare/cloudflare-python/commit/c2e0647bafd5baa13fdb71f379978e59d38aabbf))
|
||||
* **api:** OpenAPI spec update via Stainless API ([74cd67c](https://github.com/cloudflare/cloudflare-python/commit/74cd67c1d52e37daae3c56d32c93a3a4de6365d0))
|
||||
* **api:** OpenAPI spec update via Stainless API ([83cd3fd](https://github.com/cloudflare/cloudflare-python/commit/83cd3fdb839de792fe43191b6f5ff9dfff28bd0e))
|
||||
* **api:** OpenAPI spec update via Stainless API ([86075bb](https://github.com/cloudflare/cloudflare-python/commit/86075bbe47a78093139791c627604aa58772c1a1))
|
||||
* **api:** OpenAPI spec update via Stainless API ([7b4ad6e](https://github.com/cloudflare/cloudflare-python/commit/7b4ad6eb4aaba4f17d146dd848f67d9dcdcba159))
|
||||
* **api:** OpenAPI spec update via Stainless API ([11cfe41](https://github.com/cloudflare/cloudflare-python/commit/11cfe41b8e80ae2405fa01ab1d7dd1893f2cbb2c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c3abf89](https://github.com/cloudflare/cloudflare-python/commit/c3abf890c1575e305cb0bfb8db5573f372460526))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1729a2c](https://github.com/cloudflare/cloudflare-python/commit/1729a2cdd4171289500c8c335196177e3cd0dcff))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2516664](https://github.com/cloudflare/cloudflare-python/commit/25166648100df6ea94d8d7c5ccdddf3354870599))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2dce4af](https://github.com/cloudflare/cloudflare-python/commit/2dce4afe424da4476ba095c6d8ae93dc88377b5a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c08fb0d](https://github.com/cloudflare/cloudflare-python/commit/c08fb0db23befef2db80f531c8a12d2f607cb562))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2fdfcf5](https://github.com/cloudflare/cloudflare-python/commit/2fdfcf5572dfb167a5292f6dc15ed0eb28ff941a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c94a743](https://github.com/cloudflare/cloudflare-python/commit/c94a7430a205e7d855a63b20b94728f46a97942b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([87d6d49](https://github.com/cloudflare/cloudflare-python/commit/87d6d49d65697be7bfb046a3b26f4e765af3e463))
|
||||
* **api:** OpenAPI spec update via Stainless API ([7fcc030](https://github.com/cloudflare/cloudflare-python/commit/7fcc030e0b825047f3e9d230b686489e1dd144b0))
|
||||
* **api:** OpenAPI spec update via Stainless API ([64a4acd](https://github.com/cloudflare/cloudflare-python/commit/64a4acd3f11453eaf7bd817324f32410c7e2eefc))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8607159](https://github.com/cloudflare/cloudflare-python/commit/86071592bef075f2d0934fb87d009a948297fa38))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e75f499](https://github.com/cloudflare/cloudflare-python/commit/e75f49950ef8916ae747d51f8811f3e0a4b2a35a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8e5a9db](https://github.com/cloudflare/cloudflare-python/commit/8e5a9db1035e89e25e96023a9a37c673c9f83020))
|
||||
* **api:** OpenAPI spec update via Stainless API ([53f952b](https://github.com/cloudflare/cloudflare-python/commit/53f952b0cacf7f2fb3bb07ef3c2244774058f90b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9aae738](https://github.com/cloudflare/cloudflare-python/commit/9aae738690c7f728835e2a883f7cd485582bc0c6))
|
||||
* **api:** OpenAPI spec update via Stainless API ([17f284a](https://github.com/cloudflare/cloudflare-python/commit/17f284ac3d485d7e5849225f2a8d03bb951c94e2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1238133](https://github.com/cloudflare/cloudflare-python/commit/12381332af5e19131244ec7de5497afb29925a2c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b80c95a](https://github.com/cloudflare/cloudflare-python/commit/b80c95a5acf45b0a74fdfb079d5b4b2ba29f4889))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1cba5a7](https://github.com/cloudflare/cloudflare-python/commit/1cba5a7c0dc808b4c9159441fb8cc92aa2bcbfb4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([852b7dc](https://github.com/cloudflare/cloudflare-python/commit/852b7dc358f64d43b4f582c1bdb419982297d381))
|
||||
* **api:** OpenAPI spec update via Stainless API ([cf7cc16](https://github.com/cloudflare/cloudflare-python/commit/cf7cc163606391bd6f31a63fba6b9a35886e3655))
|
||||
* **api:** OpenAPI spec update via Stainless API ([009cfad](https://github.com/cloudflare/cloudflare-python/commit/009cfadeaadda6369a5a54b411ad49eb1c8080e6))
|
||||
* **api:** OpenAPI spec update via Stainless API ([cfa4415](https://github.com/cloudflare/cloudflare-python/commit/cfa44153bb98e1d5de4f6c5b40e829393dcc0fee))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c174dc7](https://github.com/cloudflare/cloudflare-python/commit/c174dc7973c277aa6311f8abf57c82029171b05a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([89d49a9](https://github.com/cloudflare/cloudflare-python/commit/89d49a90268b05872114ca2e5d36b57478033aae))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f60b165](https://github.com/cloudflare/cloudflare-python/commit/f60b1656d2761b02fe3c83ee06b055ec37a2bb28))
|
||||
* **api:** OpenAPI spec update via Stainless API ([93bdfad](https://github.com/cloudflare/cloudflare-python/commit/93bdfad87e3d6384d300305293eb2a2338c2bcb1))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8110894](https://github.com/cloudflare/cloudflare-python/commit/8110894e0b2ab5cce47c00a6abbb88921deb3836))
|
||||
* **api:** OpenAPI spec update via Stainless API ([74958bd](https://github.com/cloudflare/cloudflare-python/commit/74958bdef6ca704ccb6a6f526ec6f94013f29240))
|
||||
* **api:** OpenAPI spec update via Stainless API ([fba0e37](https://github.com/cloudflare/cloudflare-python/commit/fba0e374dce1386b26e218a688de14356e75f6d2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([23722cc](https://github.com/cloudflare/cloudflare-python/commit/23722cc37209e138c5d791194c336a9f104616f6))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8236e8b](https://github.com/cloudflare/cloudflare-python/commit/8236e8bf6764880e4347bc855d5e26ce1b506f63))
|
||||
* **api:** OpenAPI spec update via Stainless API ([5cf1dde](https://github.com/cloudflare/cloudflare-python/commit/5cf1ddeaa0181abab3c87e5d5bf19d92232c065b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a8cad59](https://github.com/cloudflare/cloudflare-python/commit/a8cad592935bbd685e0f504573cf7c8fb191951c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6134898](https://github.com/cloudflare/cloudflare-python/commit/6134898fdd4e64d8b2c30122c45fe7e2f2793523))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d1df920](https://github.com/cloudflare/cloudflare-python/commit/d1df920f4ba8d8e8557acf250995a7f635487fd7))
|
||||
* **api:** OpenAPI spec update via Stainless API ([03f1cd5](https://github.com/cloudflare/cloudflare-python/commit/03f1cd5d2303dfbfa7460086b8d027063b05aa09))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6fa0258](https://github.com/cloudflare/cloudflare-python/commit/6fa02583cb95bd6797de771dc7ac82ecd022c75a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([bacd1bf](https://github.com/cloudflare/cloudflare-python/commit/bacd1bf46e8cf159240a1cd3590163f0858c6151))
|
||||
* **api:** OpenAPI spec update via Stainless API ([3ada1c7](https://github.com/cloudflare/cloudflare-python/commit/3ada1c7b2e2b51847586471734d036cabaac9837))
|
||||
* **api:** OpenAPI spec update via Stainless API ([fe70845](https://github.com/cloudflare/cloudflare-python/commit/fe708458268bd1167e770658ccb1a4a1bb5078f8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([040b023](https://github.com/cloudflare/cloudflare-python/commit/040b023072f9b261933e0ec719fe540def306324))
|
||||
* **api:** OpenAPI spec update via Stainless API ([7e83029](https://github.com/cloudflare/cloudflare-python/commit/7e830293c537f6732dae17e45738061f705749cf))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c5a2737](https://github.com/cloudflare/cloudflare-python/commit/c5a273734ac08b4144c3f3cf6491f8241e4ac4ba))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2eb03dd](https://github.com/cloudflare/cloudflare-python/commit/2eb03dd982a840ccfbc411f4074b592ed453455d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([0ce4b26](https://github.com/cloudflare/cloudflare-python/commit/0ce4b26ad021bef18defee002e53c9a6772d44b1))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d91fe49](https://github.com/cloudflare/cloudflare-python/commit/d91fe49512b9fbaef063537ac83e046abdab9321))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6995660](https://github.com/cloudflare/cloudflare-python/commit/69956609dd8e4d3b49f12d26f281732d094da463))
|
||||
* **api:** OpenAPI spec update via Stainless API ([3a7046c](https://github.com/cloudflare/cloudflare-python/commit/3a7046c27a857c08af086cc6decd77e16e5b728d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([67e6f18](https://github.com/cloudflare/cloudflare-python/commit/67e6f18c0d39967f2dfb019c8d4304efffad9da3))
|
||||
* **api:** OpenAPI spec update via Stainless API ([04048c5](https://github.com/cloudflare/cloudflare-python/commit/04048c52c00d1c4c1838c67c6fd141adaa5f5d31))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e9ed855](https://github.com/cloudflare/cloudflare-python/commit/e9ed855708d7d4bd33671b789075a7f762091fa6))
|
||||
* **api:** OpenAPI spec update via Stainless API ([befbb9c](https://github.com/cloudflare/cloudflare-python/commit/befbb9c64aedc39c185eb7cb360177633f1632f4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2294aab](https://github.com/cloudflare/cloudflare-python/commit/2294aabf9704cff988b7f3ae914276a1957e0ee8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([eaa8e72](https://github.com/cloudflare/cloudflare-python/commit/eaa8e7251d7e8e0ef28440c93e0b9f395e89a208))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2d1fd82](https://github.com/cloudflare/cloudflare-python/commit/2d1fd82a25085ec8af0f15159219499f3a777512))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b7bf288](https://github.com/cloudflare/cloudflare-python/commit/b7bf288769f4e9711f109cab5b231cf97ee436b3))
|
||||
* **api:** OpenAPI spec update via Stainless API ([46698df](https://github.com/cloudflare/cloudflare-python/commit/46698df8041fa91f1d7dc1cf66ee6b34c5e5550d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([58191cb](https://github.com/cloudflare/cloudflare-python/commit/58191cba252056dc906a63d41bf99388919d9b91))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e0c241a](https://github.com/cloudflare/cloudflare-python/commit/e0c241ae0c09686f564fae01f23f03fbeb091ae0))
|
||||
* **api:** OpenAPI spec update via Stainless API ([5baa2fc](https://github.com/cloudflare/cloudflare-python/commit/5baa2fc8fd2c2c433389e78d59d5b0904ee92652))
|
||||
* **api:** OpenAPI spec update via Stainless API ([80601e2](https://github.com/cloudflare/cloudflare-python/commit/80601e266d77d18e058e0b251bf24eb8139d73e1))
|
||||
* **api:** OpenAPI spec update via Stainless API ([68138db](https://github.com/cloudflare/cloudflare-python/commit/68138db1b04b75f831ceb188ebe3e91e805c6615))
|
||||
* **api:** OpenAPI spec update via Stainless API ([25ddd22](https://github.com/cloudflare/cloudflare-python/commit/25ddd22e8ebc516a280afd656bea3338de60b92c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([06a3d17](https://github.com/cloudflare/cloudflare-python/commit/06a3d17164bbb3bbde5f6c34fe50a9c1f6487c46))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ec24a52](https://github.com/cloudflare/cloudflare-python/commit/ec24a52f7f0dc3f0eea7ae905dcffa0aada85366))
|
||||
* **api:** OpenAPI spec update via Stainless API ([15aabc4](https://github.com/cloudflare/cloudflare-python/commit/15aabc46d6cdce0e93ef9a52ed8acb644a1a21b4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c723bde](https://github.com/cloudflare/cloudflare-python/commit/c723bde8ca43b8c64a78700ffafd208d12ac5967))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d8f38c6](https://github.com/cloudflare/cloudflare-python/commit/d8f38c68efbc4b1cf8b9f80e81f32adf971ab56b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([915c1d7](https://github.com/cloudflare/cloudflare-python/commit/915c1d761dde3485d3aca5f4b3ddb530a15a25ee))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2842572](https://github.com/cloudflare/cloudflare-python/commit/284257253d7f203f4483c1a4e555879e92c77751))
|
||||
* **api:** OpenAPI spec update via Stainless API ([da4b888](https://github.com/cloudflare/cloudflare-python/commit/da4b88885af11c8cdaa24f6df47f62474af6472b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([cd05b30](https://github.com/cloudflare/cloudflare-python/commit/cd05b30c88c7c4950159a0d1c35ea41787e89b8b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([0c67313](https://github.com/cloudflare/cloudflare-python/commit/0c67313053090532785b8df4be37150d586ef25e))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2c0ff7d](https://github.com/cloudflare/cloudflare-python/commit/2c0ff7dee26669a155639a3cc9b68de1e6592ddb))
|
||||
* **api:** OpenAPI spec update via Stainless API ([61f2012](https://github.com/cloudflare/cloudflare-python/commit/61f20128d4257abc0216c14cc39781116addeaac))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a72ac5b](https://github.com/cloudflare/cloudflare-python/commit/a72ac5b5a6fbbdb1a2345f6199a68755fa1f87fc))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f4ca9d1](https://github.com/cloudflare/cloudflare-python/commit/f4ca9d12410b0fba30b69bbbba811ba60b9967e7))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2bad5b9](https://github.com/cloudflare/cloudflare-python/commit/2bad5b93a901a1ee89b35891e05d7bbf05d1589e))
|
||||
* **api:** OpenAPI spec update via Stainless API ([5825940](https://github.com/cloudflare/cloudflare-python/commit/582594017ebd9426b7d7c64e258bff1835ead53c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9bc3a45](https://github.com/cloudflare/cloudflare-python/commit/9bc3a4555aabcf97d43435d75f355de45e96e168))
|
||||
* **api:** OpenAPI spec update via Stainless API ([0575db6](https://github.com/cloudflare/cloudflare-python/commit/0575db6f08ac4c85283eedd75d1038e09e084e59))
|
||||
* **api:** OpenAPI spec update via Stainless API ([81164f1](https://github.com/cloudflare/cloudflare-python/commit/81164f1641408ec586c6f93b01b72702a4288f11))
|
||||
* **api:** OpenAPI spec update via Stainless API ([82449b1](https://github.com/cloudflare/cloudflare-python/commit/82449b15512f4926d4c125fdfeaf48829cf0ba3f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d56dc7a](https://github.com/cloudflare/cloudflare-python/commit/d56dc7a474b8e2ae1d475bbfecb84d0f613afdd4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ef6f32c](https://github.com/cloudflare/cloudflare-python/commit/ef6f32cf5d3936c61de034445acb08661f2ffdfa))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e14765e](https://github.com/cloudflare/cloudflare-python/commit/e14765ee80efb3ba48a30152cc11e7ea05957995))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b37a4a9](https://github.com/cloudflare/cloudflare-python/commit/b37a4a952c5d474c52d80c86e95232c843c8c4ff))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b4c773e](https://github.com/cloudflare/cloudflare-python/commit/b4c773eca520228865aff15b602889f233db07a3))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8d53838](https://github.com/cloudflare/cloudflare-python/commit/8d53838110ffb81f9df3a9ff2c077bf40bce3803))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a9193f3](https://github.com/cloudflare/cloudflare-python/commit/a9193f3efd37c3ba952f5fc1bd9716109a2f6038))
|
||||
* **api:** OpenAPI spec update via Stainless API ([114bb6b](https://github.com/cloudflare/cloudflare-python/commit/114bb6b322e7fdd0481be424dea91fa9f13c1221))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b39b42a](https://github.com/cloudflare/cloudflare-python/commit/b39b42a37f4e218c0c5b82cb99ef848e77d50972))
|
||||
* **api:** OpenAPI spec update via Stainless API ([070918f](https://github.com/cloudflare/cloudflare-python/commit/070918f0d2abab1766b0d0a0b12cc3a2f738922f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a138322](https://github.com/cloudflare/cloudflare-python/commit/a138322698b7398a94541bf47ef931088a54a63c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ed59500](https://github.com/cloudflare/cloudflare-python/commit/ed595005439f2820450795575b37f5a9fafaf1ae))
|
||||
* **api:** OpenAPI spec update via Stainless API ([15ad935](https://github.com/cloudflare/cloudflare-python/commit/15ad9355e6cb8a6171954a4c3660dc45bbde134d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([15ef09d](https://github.com/cloudflare/cloudflare-python/commit/15ef09d211715e102a7230463291f842c86c455d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([647cd3e](https://github.com/cloudflare/cloudflare-python/commit/647cd3ebbcb92abd2bd19a3c845d9ad3f1da86b2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([65df83b](https://github.com/cloudflare/cloudflare-python/commit/65df83ba6d8e81fb1c8285548952ec522a76fbfb))
|
||||
* **api:** OpenAPI spec update via Stainless API ([bb11a58](https://github.com/cloudflare/cloudflare-python/commit/bb11a58e22404b7901bf03be2c0abeb78d15ddd3))
|
||||
* **api:** OpenAPI spec update via Stainless API ([0354780](https://github.com/cloudflare/cloudflare-python/commit/03547804fcf6ef2ec07093dbcadf81be21db528e))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8116c69](https://github.com/cloudflare/cloudflare-python/commit/8116c69364aefac196fc53103868d3830dc3ee74))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f81ecdd](https://github.com/cloudflare/cloudflare-python/commit/f81ecdddbe0e69bc001dde77b5766a6d84ec337a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([da7d675](https://github.com/cloudflare/cloudflare-python/commit/da7d67586ad2cc617d3f2e67f0e68e6669571330))
|
||||
* **api:** OpenAPI spec update via Stainless API ([4a1eec8](https://github.com/cloudflare/cloudflare-python/commit/4a1eec886c9d1117dda13769dc34450101aaef79))
|
||||
* **api:** OpenAPI spec update via Stainless API ([bb2a07e](https://github.com/cloudflare/cloudflare-python/commit/bb2a07e35bb62f7778af00a539c45b100250b9ab))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b8411a9](https://github.com/cloudflare/cloudflare-python/commit/b8411a93631256d3e60260fb1d085b5a2fc61059))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f4d0dc7](https://github.com/cloudflare/cloudflare-python/commit/f4d0dc713833de606438f5b991c5217919c8858c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([491a775](https://github.com/cloudflare/cloudflare-python/commit/491a77520bc9c998b2ebf235fcef1d493259bfbd))
|
||||
* **api:** OpenAPI spec update via Stainless API ([dced7fc](https://github.com/cloudflare/cloudflare-python/commit/dced7fcf3365bff044541ba43d2d1909f3093483))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6a16a58](https://github.com/cloudflare/cloudflare-python/commit/6a16a5856041fc52cad561b36c6757a5fb229b60))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e3a3b62](https://github.com/cloudflare/cloudflare-python/commit/e3a3b6208066f7b58700c4007300a92d337e744d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([aaa21da](https://github.com/cloudflare/cloudflare-python/commit/aaa21da3219f12a4be884547b5ab81a2fd1bfbac))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d5bb6f8](https://github.com/cloudflare/cloudflare-python/commit/d5bb6f83628aabfcd1db493fcc6eb76e22de5f68))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9de375b](https://github.com/cloudflare/cloudflare-python/commit/9de375beef2488972cacd318bfd27a49f3973e02))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1865527](https://github.com/cloudflare/cloudflare-python/commit/18655278398f9763c94a71cdfe9313bc6b0a5abc))
|
||||
* **api:** OpenAPI spec update via Stainless API ([688c4f0](https://github.com/cloudflare/cloudflare-python/commit/688c4f037826f4300d8be2c7a770daa33bfdd2f4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8176af1](https://github.com/cloudflare/cloudflare-python/commit/8176af1d6cde5c1cde27a48f135cdd3d91f955d2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6e6f0e3](https://github.com/cloudflare/cloudflare-python/commit/6e6f0e325b4234ff4b84f86f6a2af2c9a7727b31))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b4e9e71](https://github.com/cloudflare/cloudflare-python/commit/b4e9e71ad85e18a3aacdcd1afdfa481ce63fad20))
|
||||
* **api:** OpenAPI spec update via Stainless API ([bfd6950](https://github.com/cloudflare/cloudflare-python/commit/bfd6950cfc776a23d60f7bca40667b41bf235e2b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c32f164](https://github.com/cloudflare/cloudflare-python/commit/c32f16418b56b29a1a21896930423b0a9de31e89))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ff6a875](https://github.com/cloudflare/cloudflare-python/commit/ff6a8754280633d21d15f55861adc4cea3d8708c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8b94b8d](https://github.com/cloudflare/cloudflare-python/commit/8b94b8dd763f1c4688ad27e6a36c138e6cf27052))
|
||||
* **api:** OpenAPI spec update via Stainless API ([4f48f34](https://github.com/cloudflare/cloudflare-python/commit/4f48f341129c396bdc50dafe7bc6781f6b077877))
|
||||
* **api:** OpenAPI spec update via Stainless API ([32a6d2d](https://github.com/cloudflare/cloudflare-python/commit/32a6d2dcd9e3381c3d3e0c345e377f82a46f5352))
|
||||
* **api:** OpenAPI spec update via Stainless API ([3339305](https://github.com/cloudflare/cloudflare-python/commit/33393052922c358ff090b879c254539d6479f9b7))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e7ece70](https://github.com/cloudflare/cloudflare-python/commit/e7ece7099ae716de17b421d5b9905fe52b19dc80))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f621e07](https://github.com/cloudflare/cloudflare-python/commit/f621e070f2e3ad28b0770aebd595ff65ad445089))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c4ec251](https://github.com/cloudflare/cloudflare-python/commit/c4ec2518e7031bc83aa21508f647f104424da4ce))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f3d27bd](https://github.com/cloudflare/cloudflare-python/commit/f3d27bd774f90ae72b41547f7db2487ada600973))
|
||||
* **api:** OpenAPI spec update via Stainless API ([398428c](https://github.com/cloudflare/cloudflare-python/commit/398428cde69f0953309c5142d56949cc55b5f3a1))
|
||||
* **api:** OpenAPI spec update via Stainless API ([cf5b13e](https://github.com/cloudflare/cloudflare-python/commit/cf5b13e5271c63012a21520dc168ed64a1696225))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9e8d867](https://github.com/cloudflare/cloudflare-python/commit/9e8d867e3e9c4043366b0934900b96d63aedd83a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2ebf3ae](https://github.com/cloudflare/cloudflare-python/commit/2ebf3aedd935784cbd7463980ce8b19400136d14))
|
||||
* **api:** OpenAPI spec update via Stainless API ([be954f1](https://github.com/cloudflare/cloudflare-python/commit/be954f1f8df7965f71180d994464286455dff31e))
|
||||
* **api:** OpenAPI spec update via Stainless API ([209d91d](https://github.com/cloudflare/cloudflare-python/commit/209d91db43837a3bc759fa6ba0f6ad03e7bd1c22))
|
||||
* **api:** OpenAPI spec update via Stainless API ([0648b00](https://github.com/cloudflare/cloudflare-python/commit/0648b00bc8893394882a6198a86f2775aeffa265))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8728546](https://github.com/cloudflare/cloudflare-python/commit/87285467021bc607827c284359a09900592417ec))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d086f8e](https://github.com/cloudflare/cloudflare-python/commit/d086f8e4065dedb7117027d5d1dab45b08d8b83f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b4ccd6a](https://github.com/cloudflare/cloudflare-python/commit/b4ccd6ae626bd333ba9a29476c54f2c49f5871c8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b3aea3b](https://github.com/cloudflare/cloudflare-python/commit/b3aea3b33e283f9bfc69f15f583d3ca91f9c1c16))
|
||||
* **api:** OpenAPI spec update via Stainless API ([22b306f](https://github.com/cloudflare/cloudflare-python/commit/22b306f9f32baeb01fc591bab5e7eb055b8f7866))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6474698](https://github.com/cloudflare/cloudflare-python/commit/64746987f3b1d510fdb01d0224a06d22c90de7fb))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2adff4f](https://github.com/cloudflare/cloudflare-python/commit/2adff4fa8c4a1d2d16f79b4942344cdf0bb14365))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6599b89](https://github.com/cloudflare/cloudflare-python/commit/6599b894084c7049ad8bd2990c32e5ba6064d896))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ca8df49](https://github.com/cloudflare/cloudflare-python/commit/ca8df49cac11b03f631243f2b5bc61033260d72b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([811809e](https://github.com/cloudflare/cloudflare-python/commit/811809ea7819adb8ac0d7193d8381804b7414780))
|
||||
* **api:** OpenAPI spec update via Stainless API ([5417100](https://github.com/cloudflare/cloudflare-python/commit/541710005f476704c47c3521d248003fc9779029))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b8641ba](https://github.com/cloudflare/cloudflare-python/commit/b8641babb0bdfe6fe7a95a9e483dfd92c44ec77f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([85ea74c](https://github.com/cloudflare/cloudflare-python/commit/85ea74c4a37b5194290c8209516a362b59750cb4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([3f6b017](https://github.com/cloudflare/cloudflare-python/commit/3f6b0175cfdcdc991232c1a42361ef7d2873a7d4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([99bcb73](https://github.com/cloudflare/cloudflare-python/commit/99bcb73398dfc64dfa6f5983de458835156e2b92))
|
||||
* **api:** OpenAPI spec update via Stainless API ([98d6d68](https://github.com/cloudflare/cloudflare-python/commit/98d6d681f0ad9668ce3fdedd534fbf1ba8f8507d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([878b526](https://github.com/cloudflare/cloudflare-python/commit/878b526a9d376b2a3fceaefc7223388436f8c31c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([52fcb9b](https://github.com/cloudflare/cloudflare-python/commit/52fcb9bf6988bd59bed933efd942ac8a35825fb9))
|
||||
* **api:** OpenAPI spec update via Stainless API ([24610ee](https://github.com/cloudflare/cloudflare-python/commit/24610ee1243535917235fe9ba04c3e80580c1c1c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1de091b](https://github.com/cloudflare/cloudflare-python/commit/1de091bc1ba4baf0e2bea21d0f2222a89c4edf69))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a1855ad](https://github.com/cloudflare/cloudflare-python/commit/a1855ad6ee34f84f89450f911184b6f7eed4413d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c540a6b](https://github.com/cloudflare/cloudflare-python/commit/c540a6bc15c3853b7c24cf7ab0b76442ccdbe2b5))
|
||||
* **api:** OpenAPI spec update via Stainless API ([46fe427](https://github.com/cloudflare/cloudflare-python/commit/46fe427595b0c1580dfe6918782883cb8aa60007))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6b898d6](https://github.com/cloudflare/cloudflare-python/commit/6b898d6f100b09f5f2366aa80ef9aba6d908f916))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2a1cb4b](https://github.com/cloudflare/cloudflare-python/commit/2a1cb4b5eebeeaa93b5001123a694925e76fbd87))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f44b8d9](https://github.com/cloudflare/cloudflare-python/commit/f44b8d9ac90e52945dccdd5daf59db6d6fa8adc0))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e8f0de5](https://github.com/cloudflare/cloudflare-python/commit/e8f0de59269f9b97a1b55a70cffeac08b6f8e86f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([bbc84f8](https://github.com/cloudflare/cloudflare-python/commit/bbc84f8a0376b069b8518941feca9f7fd9d94a66))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e54a57e](https://github.com/cloudflare/cloudflare-python/commit/e54a57e258d36ed6b1054af8e90637c6aa66be0d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([96735b7](https://github.com/cloudflare/cloudflare-python/commit/96735b72824d5e8e23c4806bed46dde469caa036))
|
||||
* **api:** OpenAPI spec update via Stainless API ([bc04ae8](https://github.com/cloudflare/cloudflare-python/commit/bc04ae8b528ec86c035981138e99ea648cfb5290))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1273d3f](https://github.com/cloudflare/cloudflare-python/commit/1273d3fcc43ab553dc5224195a446a7d9bef6c81))
|
||||
* **api:** OpenAPI spec update via Stainless API ([291e099](https://github.com/cloudflare/cloudflare-python/commit/291e099c3e37e5db5143c3aae020326a24385de8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([258cab1](https://github.com/cloudflare/cloudflare-python/commit/258cab107d7116f1dabd7fc7d97e9074a8ab9d90))
|
||||
* **api:** OpenAPI spec update via Stainless API ([c4770ee](https://github.com/cloudflare/cloudflare-python/commit/c4770ee743c448a7bb8a3dabbc24f6354144d225))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a511f0e](https://github.com/cloudflare/cloudflare-python/commit/a511f0e2cbb2a61e96f3cb589415fe80a9704434))
|
||||
* **api:** OpenAPI spec update via Stainless API ([af263ca](https://github.com/cloudflare/cloudflare-python/commit/af263cad7303d31ac949456b5505d0c8b52f09e4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d2e2b28](https://github.com/cloudflare/cloudflare-python/commit/d2e2b28b9866b565cd6886de51c1e1dd822a1d01))
|
||||
* **api:** OpenAPI spec update via Stainless API ([821bb59](https://github.com/cloudflare/cloudflare-python/commit/821bb593a9de0164e50d82333139ae710d5335ea))
|
||||
* **api:** OpenAPI spec update via Stainless API ([e78475a](https://github.com/cloudflare/cloudflare-python/commit/e78475a10ec7076dc4f2aa17ee022474ae2adf23))
|
||||
* **api:** OpenAPI spec update via Stainless API ([b6be122](https://github.com/cloudflare/cloudflare-python/commit/b6be1224977894d2e22f15a2351d32ab762c92a8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([3995ced](https://github.com/cloudflare/cloudflare-python/commit/3995ced50250d1c2064d211d417646b96412dfd0))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2f1d0e0](https://github.com/cloudflare/cloudflare-python/commit/2f1d0e0668fbb75bf7bc2f8b0b9352a344282a52))
|
||||
* **api:** OpenAPI spec update via Stainless API ([75500a8](https://github.com/cloudflare/cloudflare-python/commit/75500a82528ea4719f465ea829d5859bd6cd7753))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8fb0b19](https://github.com/cloudflare/cloudflare-python/commit/8fb0b193fc2229cedddaa58788bc99266e08b2bf))
|
||||
* **api:** OpenAPI spec update via Stainless API ([522bc46](https://github.com/cloudflare/cloudflare-python/commit/522bc467ebdd2dbcacb8bfce715df6395c9cd8e8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8a429e3](https://github.com/cloudflare/cloudflare-python/commit/8a429e35b8473e54ea071bd28394d946069451fc))
|
||||
* **api:** OpenAPI spec update via Stainless API ([38feb38](https://github.com/cloudflare/cloudflare-python/commit/38feb387f4ae465c94934daf211a0f4ea365653e))
|
||||
* **api:** OpenAPI spec update via Stainless API ([3c4078f](https://github.com/cloudflare/cloudflare-python/commit/3c4078f9df62341cb4eb203db869e7e14a15a43f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([60f53e5](https://github.com/cloudflare/cloudflare-python/commit/60f53e5336ccba89198c2b82ed0783b658903f78))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1282d20](https://github.com/cloudflare/cloudflare-python/commit/1282d2095fc72b2a0d9a89109ad61826229bad92))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1551969](https://github.com/cloudflare/cloudflare-python/commit/1551969f22447c6c58eb751601e585361585a393))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a90da01](https://github.com/cloudflare/cloudflare-python/commit/a90da01d76b191ca8db4864f41f1161c6a418ea9))
|
||||
* **api:** OpenAPI spec update via Stainless API ([17c6455](https://github.com/cloudflare/cloudflare-python/commit/17c6455a40f4ca9030d05229b31d3f72ed9b03f7))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f7a6ca1](https://github.com/cloudflare/cloudflare-python/commit/f7a6ca119d87ca95d169ea216086a162486e2d58))
|
||||
* **api:** OpenAPI spec update via Stainless API ([34706fd](https://github.com/cloudflare/cloudflare-python/commit/34706fdbe82f48e7d8465bd7ce0214b87dea5e41))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9094b4e](https://github.com/cloudflare/cloudflare-python/commit/9094b4e4b237a6b0576810f33fe0067a9f0945b8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([4a0644f](https://github.com/cloudflare/cloudflare-python/commit/4a0644f309e82a517c9f28f770b13392736fc4b2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([17c2b78](https://github.com/cloudflare/cloudflare-python/commit/17c2b78eab91e1e0bb5cefcae5108861dc112cec))
|
||||
* **api:** OpenAPI spec update via Stainless API ([5584fca](https://github.com/cloudflare/cloudflare-python/commit/5584fca47ee8029453960542574421c2bfe1f713))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6c8b53a](https://github.com/cloudflare/cloudflare-python/commit/6c8b53a499c856886e6eda6db3c1f22e6969e966))
|
||||
* **api:** OpenAPI spec update via Stainless API ([0dbf0f5](https://github.com/cloudflare/cloudflare-python/commit/0dbf0f5382d744ac2eff3ca183d31ba1e331cd8f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6949c20](https://github.com/cloudflare/cloudflare-python/commit/6949c20c1eaf29453ffc04182c116f58918ac01d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([eba86e8](https://github.com/cloudflare/cloudflare-python/commit/eba86e853d1dae984993f2538d3dac1650390dae))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f43166b](https://github.com/cloudflare/cloudflare-python/commit/f43166b9914feba22ea46f44f9d12900992c4798))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ee81fba](https://github.com/cloudflare/cloudflare-python/commit/ee81fba8a8ca57e53dda82d3bfdb4492707e4ba6))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a897b66](https://github.com/cloudflare/cloudflare-python/commit/a897b665cfbbd37d57e62eaa791d2a91e8a45559))
|
||||
* **api:** OpenAPI spec update via Stainless API ([ffc17e9](https://github.com/cloudflare/cloudflare-python/commit/ffc17e958c1c3601f1c70a18021283bf37225948))
|
||||
* **api:** OpenAPI spec update via Stainless API ([aeaa56c](https://github.com/cloudflare/cloudflare-python/commit/aeaa56cf6fcba32181047a63b209cfb61b8f5a3b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([64819e5](https://github.com/cloudflare/cloudflare-python/commit/64819e531dd5134571a0b55ed963dfa3d1a9cc77))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9ec6e88](https://github.com/cloudflare/cloudflare-python/commit/9ec6e8880449858c46ffa8b962d33108aa7ac69d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8f24c0d](https://github.com/cloudflare/cloudflare-python/commit/8f24c0d53839d2601d4e1bd52d7617f58086926c))
|
||||
* **api:** OpenAPI spec update via Stainless API ([9a14329](https://github.com/cloudflare/cloudflare-python/commit/9a143298564b586a3655a15249fb6198c72d29ea))
|
||||
* **api:** OpenAPI spec update via Stainless API ([6e0e19f](https://github.com/cloudflare/cloudflare-python/commit/6e0e19f4f078d3dd11872cb41177686526f442fb))
|
||||
* **api:** OpenAPI spec update via Stainless API ([21c0d21](https://github.com/cloudflare/cloudflare-python/commit/21c0d21b766566cdb99a2b260a71f7ee19dd610f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d064f1a](https://github.com/cloudflare/cloudflare-python/commit/d064f1a0f41bc13e123b30f96d18450c592cccf5))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d666576](https://github.com/cloudflare/cloudflare-python/commit/d666576e60ec7a24ceb89aa0280b1c91de1aea03))
|
||||
* **api:** OpenAPI spec update via Stainless API ([634a302](https://github.com/cloudflare/cloudflare-python/commit/634a302bfc49250984f90381f9e1a4998031cfa4))
|
||||
* **api:** OpenAPI spec update via Stainless API ([aa12f3c](https://github.com/cloudflare/cloudflare-python/commit/aa12f3c9b2b094e7be72997ebc8dfe103117af4d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([0559f40](https://github.com/cloudflare/cloudflare-python/commit/0559f4076e51d9f25526c0e1d8394c958930b89d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([30e1a06](https://github.com/cloudflare/cloudflare-python/commit/30e1a06a3dbd613a1ab782e003729b456f630404))
|
||||
* **api:** OpenAPI spec update via Stainless API ([741afd2](https://github.com/cloudflare/cloudflare-python/commit/741afd294103d244e6397c85d55214a957c1b406))
|
||||
* **api:** OpenAPI spec update via Stainless API ([a1b659c](https://github.com/cloudflare/cloudflare-python/commit/a1b659ca93641feef1b21e5ddc470672d55e7b6a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([1c9534a](https://github.com/cloudflare/cloudflare-python/commit/1c9534a37a227e6c349246f2b93881c245047282))
|
||||
* **api:** OpenAPI spec update via Stainless API ([213c7f0](https://github.com/cloudflare/cloudflare-python/commit/213c7f0519da8b2f0aa373710644a44850dae529))
|
||||
* **api:** OpenAPI spec update via Stainless API ([d265388](https://github.com/cloudflare/cloudflare-python/commit/d265388717ce46986b3f3206e03a429ae1913a55))
|
||||
* **api:** OpenAPI spec update via Stainless API ([8aeb63a](https://github.com/cloudflare/cloudflare-python/commit/8aeb63a65033b430e2f045a404e8b672882e731d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([2547a2e](https://github.com/cloudflare/cloudflare-python/commit/2547a2e132a6356b92a2699e4730c18130301986))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f6f6db3](https://github.com/cloudflare/cloudflare-python/commit/f6f6db3d01e4975c0f04885855689545bcc062e0))
|
||||
* **api:** OpenAPI spec update via Stainless API ([598261d](https://github.com/cloudflare/cloudflare-python/commit/598261d7acb05e138ea288714f071cfb85aafb21))
|
||||
* **api:** OpenAPI spec update via Stainless API ([17ed0ff](https://github.com/cloudflare/cloudflare-python/commit/17ed0ff86a7946e20422fc4c591ced68543e213d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([f026881](https://github.com/cloudflare/cloudflare-python/commit/f02688168e9ba3e5f70350e64d08d49dcbaef159))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1147](https://github.com/cloudflare/cloudflare-python/issues/1147)) ([de4e348](https://github.com/cloudflare/cloudflare-python/commit/de4e3480493c1a6da37373f8cb06df8dacfd0bfa))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1148](https://github.com/cloudflare/cloudflare-python/issues/1148)) ([9026ba1](https://github.com/cloudflare/cloudflare-python/commit/9026ba1317f96ce83986ee633f4587191f3236cb))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1149](https://github.com/cloudflare/cloudflare-python/issues/1149)) ([b017f04](https://github.com/cloudflare/cloudflare-python/commit/b017f04e5b811ef32173f45d6b4b3a3f0dd6a81a))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1150](https://github.com/cloudflare/cloudflare-python/issues/1150)) ([11218de](https://github.com/cloudflare/cloudflare-python/commit/11218de0b1ae274ce39d864e785f7ddbdd9499b3))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1152](https://github.com/cloudflare/cloudflare-python/issues/1152)) ([c2878bd](https://github.com/cloudflare/cloudflare-python/commit/c2878bdb2578de9990d0001f139656221c86e9de))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1155](https://github.com/cloudflare/cloudflare-python/issues/1155)) ([7706d48](https://github.com/cloudflare/cloudflare-python/commit/7706d48f3f1382e4a23a55a9e8819a8abb5ed075))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1156](https://github.com/cloudflare/cloudflare-python/issues/1156)) ([e71be01](https://github.com/cloudflare/cloudflare-python/commit/e71be01b47386d43e0555d2d029d03690237eca2))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1157](https://github.com/cloudflare/cloudflare-python/issues/1157)) ([d73518c](https://github.com/cloudflare/cloudflare-python/commit/d73518c7b75c6624d81971e7d206904d1638f3d8))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1158](https://github.com/cloudflare/cloudflare-python/issues/1158)) ([0dff80f](https://github.com/cloudflare/cloudflare-python/commit/0dff80f61429dec8114d4698c46cc946b366bf8d))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1160](https://github.com/cloudflare/cloudflare-python/issues/1160)) ([6031ae9](https://github.com/cloudflare/cloudflare-python/commit/6031ae93d9f3aa5468fa245161eee009d27ffcb5))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1161](https://github.com/cloudflare/cloudflare-python/issues/1161)) ([079cba5](https://github.com/cloudflare/cloudflare-python/commit/079cba58d11fdb9dfb0e3d48eba51ac6f294c1bd))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1162](https://github.com/cloudflare/cloudflare-python/issues/1162)) ([b25c6fc](https://github.com/cloudflare/cloudflare-python/commit/b25c6fc4490f193f833415491a67967b9617675f))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1163](https://github.com/cloudflare/cloudflare-python/issues/1163)) ([94c8879](https://github.com/cloudflare/cloudflare-python/commit/94c88793f635b0db08c46a2eedd7952dddd17c92))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1164](https://github.com/cloudflare/cloudflare-python/issues/1164)) ([37b2b79](https://github.com/cloudflare/cloudflare-python/commit/37b2b79102d869092b26403633d00459db7d4fd7))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1165](https://github.com/cloudflare/cloudflare-python/issues/1165)) ([6503a16](https://github.com/cloudflare/cloudflare-python/commit/6503a1689e3d9e2c47fd375320a7028972ece709))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1166](https://github.com/cloudflare/cloudflare-python/issues/1166)) ([3dcb89f](https://github.com/cloudflare/cloudflare-python/commit/3dcb89f67e0b9bbc8e58445fb4964f16761a6655))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1167](https://github.com/cloudflare/cloudflare-python/issues/1167)) ([316f72e](https://github.com/cloudflare/cloudflare-python/commit/316f72ed25fb5ac235d10528bed1b3cea884c6c1))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1168](https://github.com/cloudflare/cloudflare-python/issues/1168)) ([bce89eb](https://github.com/cloudflare/cloudflare-python/commit/bce89ebcd94cf8f27f1df383bb26fab80ece51df))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1170](https://github.com/cloudflare/cloudflare-python/issues/1170)) ([bcbde3c](https://github.com/cloudflare/cloudflare-python/commit/bcbde3c48acc8d07268bb51550b67273bad1b526))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1171](https://github.com/cloudflare/cloudflare-python/issues/1171)) ([49a3447](https://github.com/cloudflare/cloudflare-python/commit/49a344776c7654fd3448b241d886b359899820be))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1172](https://github.com/cloudflare/cloudflare-python/issues/1172)) ([2e661f0](https://github.com/cloudflare/cloudflare-python/commit/2e661f04b793428a79f6a1950216b152cf605a5b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1173](https://github.com/cloudflare/cloudflare-python/issues/1173)) ([7805fde](https://github.com/cloudflare/cloudflare-python/commit/7805fde9b300a107b619ed44d58cd144575bf556))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1174](https://github.com/cloudflare/cloudflare-python/issues/1174)) ([62e392f](https://github.com/cloudflare/cloudflare-python/commit/62e392fc33d1bb8ad29cbe0bd871615f4e2229f5))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1175](https://github.com/cloudflare/cloudflare-python/issues/1175)) ([fa52697](https://github.com/cloudflare/cloudflare-python/commit/fa526975d0daedf8bda09bed1678a74a4f6f058b))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1176](https://github.com/cloudflare/cloudflare-python/issues/1176)) ([6a321d3](https://github.com/cloudflare/cloudflare-python/commit/6a321d34b825d9217d847be1ea56cf611defe111))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1177](https://github.com/cloudflare/cloudflare-python/issues/1177)) ([736ef7d](https://github.com/cloudflare/cloudflare-python/commit/736ef7dfbdbaf7c42ced3c702574142b02d006cd))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1179](https://github.com/cloudflare/cloudflare-python/issues/1179)) ([502c98c](https://github.com/cloudflare/cloudflare-python/commit/502c98c1a1499d454f98f388e5527540f0712002))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1183](https://github.com/cloudflare/cloudflare-python/issues/1183)) ([8fdc3df](https://github.com/cloudflare/cloudflare-python/commit/8fdc3df35e7920199ba257dcda0f804f997758cf))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1184](https://github.com/cloudflare/cloudflare-python/issues/1184)) ([bb95823](https://github.com/cloudflare/cloudflare-python/commit/bb958239243ec5bed89615884104cba1df4543e6))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1185](https://github.com/cloudflare/cloudflare-python/issues/1185)) ([7ae4e71](https://github.com/cloudflare/cloudflare-python/commit/7ae4e71c470086e80e8cb1d47d9536f20b1c6092))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1186](https://github.com/cloudflare/cloudflare-python/issues/1186)) ([84d7b0d](https://github.com/cloudflare/cloudflare-python/commit/84d7b0dc1a0d7ad3eade4ef567167f3cac827496))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1187](https://github.com/cloudflare/cloudflare-python/issues/1187)) ([1022f30](https://github.com/cloudflare/cloudflare-python/commit/1022f3066bf2e65457ef9a0d8f969f87a1e20b94))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1188](https://github.com/cloudflare/cloudflare-python/issues/1188)) ([90ce238](https://github.com/cloudflare/cloudflare-python/commit/90ce238bfabfc0182f8f8dabf5cbc9ae84a15c91))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1190](https://github.com/cloudflare/cloudflare-python/issues/1190)) ([a2955c5](https://github.com/cloudflare/cloudflare-python/commit/a2955c5da1ec6e6a0d6205c6bc33e19040fb98d5))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1191](https://github.com/cloudflare/cloudflare-python/issues/1191)) ([d3e0648](https://github.com/cloudflare/cloudflare-python/commit/d3e0648ee12e9cf442de7c58e29cc5bfe5ec8abe))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1192](https://github.com/cloudflare/cloudflare-python/issues/1192)) ([8ea5be2](https://github.com/cloudflare/cloudflare-python/commit/8ea5be246f8471bc252df1dd431c45bc428d08b5))
|
||||
* **api:** OpenAPI spec update via Stainless API ([#1193](https://github.com/cloudflare/cloudflare-python/issues/1193)) ([0bfa95a](https://github.com/cloudflare/cloudflare-python/commit/0bfa95acf64fa8b6682388cad93e04062ffface1))
|
||||
* **api:** update via SDK Studio ([c309481](https://github.com/cloudflare/cloudflare-python/commit/c309481bf9454776b16a1c6ab666aa73f1a13d7c))
|
||||
* **api:** update via SDK Studio ([fd61b0d](https://github.com/cloudflare/cloudflare-python/commit/fd61b0dd320d0bd6f93ed03783a739ee0145629b))
|
||||
* **api:** update via SDK Studio ([6f848ba](https://github.com/cloudflare/cloudflare-python/commit/6f848ba0bea1a6d62115be64580ef67e8bd784b0))
|
||||
* **api:** update via SDK Studio ([#1146](https://github.com/cloudflare/cloudflare-python/issues/1146)) ([4fc1453](https://github.com/cloudflare/cloudflare-python/commit/4fc14538dc45b58059a84eb89afa4013be4fb0ff))
|
||||
* **api:** update via SDK Studio ([#1154](https://github.com/cloudflare/cloudflare-python/issues/1154)) ([129fdd8](https://github.com/cloudflare/cloudflare-python/commit/129fdd8333e094f979ec6a2f07517fe5aaff4003))
|
||||
* **api:** update via SDK Studio ([#1159](https://github.com/cloudflare/cloudflare-python/issues/1159)) ([32214d9](https://github.com/cloudflare/cloudflare-python/commit/32214d9a3c32aa2a5ecad1eb9328dcd8c1343fce))
|
||||
* **api:** update via SDK Studio ([#1180](https://github.com/cloudflare/cloudflare-python/issues/1180)) ([d0a6c8a](https://github.com/cloudflare/cloudflare-python/commit/d0a6c8a7683be5b2b0110f761ad47f8fb6b7d9fc))
|
||||
* **api:** update via SDK Studio ([#1181](https://github.com/cloudflare/cloudflare-python/issues/1181)) ([efafb96](https://github.com/cloudflare/cloudflare-python/commit/efafb96456cbf3314ab93dfb3dbf71d554a77eec))
|
||||
* **api:** update via SDK Studio ([#1182](https://github.com/cloudflare/cloudflare-python/issues/1182)) ([41a8d22](https://github.com/cloudflare/cloudflare-python/commit/41a8d2246f92dcafba6a7f728ed21bdf354cd508))
|
||||
* **api:** update via SDK Studio ([#1189](https://github.com/cloudflare/cloudflare-python/issues/1189)) ([cf972bb](https://github.com/cloudflare/cloudflare-python/commit/cf972bbbe25203a42bfc9f9b6c80a0aac64a30dc))
|
||||
|
||||
## 3.0.1 (2024-06-24)
|
||||
|
||||
Full Changelog: [v3.0.0...v3.0.1](https://github.com/cloudflare/cloudflare-python/compare/v3.0.0...v3.0.1)
|
||||
|
|
|
|||
|
|
@ -351,7 +351,7 @@ You can directly override the [httpx client](https://www.python-httpx.org/api/#c
|
|||
|
||||
- Support for proxies
|
||||
- Custom transports
|
||||
- Additional [advanced](https://www.python-httpx.org/advanced/#client-instances) functionality
|
||||
- Additional [advanced](https://www.python-httpx.org/advanced/clients/) functionality
|
||||
|
||||
```python
|
||||
from cloudflare import Cloudflare, DefaultHttpxClient
|
||||
|
|
|
|||
800
api.md
800
api.md
|
|
@ -307,671 +307,70 @@ Methods:
|
|||
|
||||
## Settings
|
||||
|
||||
### ZeroRTT
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import ZeroRTT
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/0rtt">client.zones.settings.zero_rtt.<a href="./src/cloudflare/resources/zones/settings/zero_rtt.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/zero_rtt_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/zero_rtt.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/0rtt">client.zones.settings.zero_rtt.<a href="./src/cloudflare/resources/zones/settings/zero_rtt.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/zero_rtt.py">Optional</a></code>
|
||||
|
||||
### AdvancedDDoS
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import AdvancedDDoS
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="get /zones/{zone_id}/settings/advanced_ddos">client.zones.settings.advanced_ddos.<a href="./src/cloudflare/resources/zones/settings/advanced_ddos.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/advanced_ddos.py">Optional</a></code>
|
||||
|
||||
### AlwaysOnline
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import AlwaysOnline
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/always_online">client.zones.settings.always_online.<a href="./src/cloudflare/resources/zones/settings/always_online.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/always_online_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/always_online.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/always_online">client.zones.settings.always_online.<a href="./src/cloudflare/resources/zones/settings/always_online.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/always_online.py">Optional</a></code>
|
||||
|
||||
### AlwaysUseHTTPS
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import AlwaysUseHTTPS
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/always_use_https">client.zones.settings.always_use_https.<a href="./src/cloudflare/resources/zones/settings/always_use_https.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/always_use_https_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/always_use_https.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/always_use_https">client.zones.settings.always_use_https.<a href="./src/cloudflare/resources/zones/settings/always_use_https.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/always_use_https.py">Optional</a></code>
|
||||
|
||||
### AutomaticHTTPSRewrites
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import AutomaticHTTPSRewrites
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/automatic_https_rewrites">client.zones.settings.automatic_https_rewrites.<a href="./src/cloudflare/resources/zones/settings/automatic_https_rewrites.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/automatic_https_rewrite_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/automatic_https_rewrites.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/automatic_https_rewrites">client.zones.settings.automatic_https_rewrites.<a href="./src/cloudflare/resources/zones/settings/automatic_https_rewrites.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/automatic_https_rewrites.py">Optional</a></code>
|
||||
|
||||
### AutomaticPlatformOptimization
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import AutomaticPlatformOptimization
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/automatic_platform_optimization">client.zones.settings.automatic_platform_optimization.<a href="./src/cloudflare/resources/zones/settings/automatic_platform_optimization.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/automatic_platform_optimization_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/automatic_platform_optimization.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/automatic_platform_optimization">client.zones.settings.automatic_platform_optimization.<a href="./src/cloudflare/resources/zones/settings/automatic_platform_optimization.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/automatic_platform_optimization.py">Optional</a></code>
|
||||
|
||||
### Brotli
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import Brotli
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/brotli">client.zones.settings.brotli.<a href="./src/cloudflare/resources/zones/settings/brotli.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/brotli_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/brotli.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/brotli">client.zones.settings.brotli.<a href="./src/cloudflare/resources/zones/settings/brotli.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/brotli.py">Optional</a></code>
|
||||
|
||||
### BrowserCacheTTL
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import BrowserCacheTTL
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/browser_cache_ttl">client.zones.settings.browser_cache_ttl.<a href="./src/cloudflare/resources/zones/settings/browser_cache_ttl.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/browser_cache_ttl_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/browser_cache_ttl.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/browser_cache_ttl">client.zones.settings.browser_cache_ttl.<a href="./src/cloudflare/resources/zones/settings/browser_cache_ttl.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/browser_cache_ttl.py">Optional</a></code>
|
||||
|
||||
### BrowserCheck
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import BrowserCheck
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/browser_check">client.zones.settings.browser_check.<a href="./src/cloudflare/resources/zones/settings/browser_check.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/browser_check_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/browser_check.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/browser_check">client.zones.settings.browser_check.<a href="./src/cloudflare/resources/zones/settings/browser_check.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/browser_check.py">Optional</a></code>
|
||||
|
||||
### CacheLevel
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import CacheLevel
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/cache_level">client.zones.settings.cache_level.<a href="./src/cloudflare/resources/zones/settings/cache_level.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/cache_level_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/cache_level.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/cache_level">client.zones.settings.cache_level.<a href="./src/cloudflare/resources/zones/settings/cache_level.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/cache_level.py">Optional</a></code>
|
||||
|
||||
### ChallengeTTL
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import ChallengeTTL
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/challenge_ttl">client.zones.settings.challenge_ttl.<a href="./src/cloudflare/resources/zones/settings/challenge_ttl.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/challenge_ttl_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/challenge_ttl.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/challenge_ttl">client.zones.settings.challenge_ttl.<a href="./src/cloudflare/resources/zones/settings/challenge_ttl.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/challenge_ttl.py">Optional</a></code>
|
||||
|
||||
### Ciphers
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import Ciphers
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/ciphers">client.zones.settings.ciphers.<a href="./src/cloudflare/resources/zones/settings/ciphers.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/cipher_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/ciphers.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/ciphers">client.zones.settings.ciphers.<a href="./src/cloudflare/resources/zones/settings/ciphers.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/ciphers.py">Optional</a></code>
|
||||
|
||||
### DevelopmentMode
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import DevelopmentMode
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/development_mode">client.zones.settings.development_mode.<a href="./src/cloudflare/resources/zones/settings/development_mode.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/development_mode_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/development_mode.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/development_mode">client.zones.settings.development_mode.<a href="./src/cloudflare/resources/zones/settings/development_mode.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/development_mode.py">Optional</a></code>
|
||||
|
||||
### EarlyHints
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import EarlyHints
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/early_hints">client.zones.settings.early_hints.<a href="./src/cloudflare/resources/zones/settings/early_hints.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/early_hint_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/early_hints.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/early_hints">client.zones.settings.early_hints.<a href="./src/cloudflare/resources/zones/settings/early_hints.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/early_hints.py">Optional</a></code>
|
||||
|
||||
### EmailObfuscation
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import EmailObfuscation
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/email_obfuscation">client.zones.settings.email_obfuscation.<a href="./src/cloudflare/resources/zones/settings/email_obfuscation.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/email_obfuscation_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/email_obfuscation.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/email_obfuscation">client.zones.settings.email_obfuscation.<a href="./src/cloudflare/resources/zones/settings/email_obfuscation.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/email_obfuscation.py">Optional</a></code>
|
||||
|
||||
### H2Prioritization
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import H2Prioritization
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/h2_prioritization">client.zones.settings.h2_prioritization.<a href="./src/cloudflare/resources/zones/settings/h2_prioritization.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/h2_prioritization_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/h2_prioritization.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/h2_prioritization">client.zones.settings.h2_prioritization.<a href="./src/cloudflare/resources/zones/settings/h2_prioritization.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/h2_prioritization.py">Optional</a></code>
|
||||
|
||||
### HotlinkProtection
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import HotlinkProtection
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/hotlink_protection">client.zones.settings.hotlink_protection.<a href="./src/cloudflare/resources/zones/settings/hotlink_protection.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/hotlink_protection_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/hotlink_protection.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/hotlink_protection">client.zones.settings.hotlink_protection.<a href="./src/cloudflare/resources/zones/settings/hotlink_protection.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/hotlink_protection.py">Optional</a></code>
|
||||
|
||||
### HTTP2
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import HTTP2
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/http2">client.zones.settings.http2.<a href="./src/cloudflare/resources/zones/settings/http2.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/http2_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/http2.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/http2">client.zones.settings.http2.<a href="./src/cloudflare/resources/zones/settings/http2.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/http2.py">Optional</a></code>
|
||||
|
||||
### HTTP3
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import HTTP3
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/http3">client.zones.settings.http3.<a href="./src/cloudflare/resources/zones/settings/http3.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/http3_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/http3.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/http3">client.zones.settings.http3.<a href="./src/cloudflare/resources/zones/settings/http3.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/http3.py">Optional</a></code>
|
||||
|
||||
### ImageResizing
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import ImageResizing
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/image_resizing">client.zones.settings.image_resizing.<a href="./src/cloudflare/resources/zones/settings/image_resizing.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/image_resizing_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/image_resizing.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/image_resizing">client.zones.settings.image_resizing.<a href="./src/cloudflare/resources/zones/settings/image_resizing.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/image_resizing.py">Optional</a></code>
|
||||
|
||||
### IPGeolocation
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import IPGeolocation
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/ip_geolocation">client.zones.settings.ip_geolocation.<a href="./src/cloudflare/resources/zones/settings/ip_geolocation.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/ip_geolocation_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/ip_geolocation.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/ip_geolocation">client.zones.settings.ip_geolocation.<a href="./src/cloudflare/resources/zones/settings/ip_geolocation.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/ip_geolocation.py">Optional</a></code>
|
||||
|
||||
### IPV6
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import IPV6
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/ipv6">client.zones.settings.ipv6.<a href="./src/cloudflare/resources/zones/settings/ipv6.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/ipv6_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/ipv6.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/ipv6">client.zones.settings.ipv6.<a href="./src/cloudflare/resources/zones/settings/ipv6.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/ipv6.py">Optional</a></code>
|
||||
|
||||
### MinTLSVersion
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import MinTLSVersion
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/min_tls_version">client.zones.settings.min_tls_version.<a href="./src/cloudflare/resources/zones/settings/min_tls_version.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/min_tls_version_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/min_tls_version.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/min_tls_version">client.zones.settings.min_tls_version.<a href="./src/cloudflare/resources/zones/settings/min_tls_version.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/min_tls_version.py">Optional</a></code>
|
||||
|
||||
### Minify
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import Minify
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/minify">client.zones.settings.minify.<a href="./src/cloudflare/resources/zones/settings/minify.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/minify_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/minify.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/minify">client.zones.settings.minify.<a href="./src/cloudflare/resources/zones/settings/minify.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/minify.py">Optional</a></code>
|
||||
|
||||
### Mirage
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import Mirage
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/mirage">client.zones.settings.mirage.<a href="./src/cloudflare/resources/zones/settings/mirage.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/mirage_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/mirage.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/mirage">client.zones.settings.mirage.<a href="./src/cloudflare/resources/zones/settings/mirage.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/mirage.py">Optional</a></code>
|
||||
|
||||
### MobileRedirect
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import MobileRedirect
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/mobile_redirect">client.zones.settings.mobile_redirect.<a href="./src/cloudflare/resources/zones/settings/mobile_redirect.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/mobile_redirect_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/mobile_redirect.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/mobile_redirect">client.zones.settings.mobile_redirect.<a href="./src/cloudflare/resources/zones/settings/mobile_redirect.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/mobile_redirect.py">Optional</a></code>
|
||||
|
||||
### NEL
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import NEL
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/nel">client.zones.settings.nel.<a href="./src/cloudflare/resources/zones/settings/nel.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/nel_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/nel.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/nel">client.zones.settings.nel.<a href="./src/cloudflare/resources/zones/settings/nel.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/nel.py">Optional</a></code>
|
||||
|
||||
### OpportunisticEncryption
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import OpportunisticEncryption
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/opportunistic_encryption">client.zones.settings.opportunistic_encryption.<a href="./src/cloudflare/resources/zones/settings/opportunistic_encryption.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/opportunistic_encryption_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/opportunistic_encryption.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/opportunistic_encryption">client.zones.settings.opportunistic_encryption.<a href="./src/cloudflare/resources/zones/settings/opportunistic_encryption.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/opportunistic_encryption.py">Optional</a></code>
|
||||
|
||||
### OpportunisticOnion
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import OpportunisticOnion
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/opportunistic_onion">client.zones.settings.opportunistic_onion.<a href="./src/cloudflare/resources/zones/settings/opportunistic_onion.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/opportunistic_onion_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/opportunistic_onion.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/opportunistic_onion">client.zones.settings.opportunistic_onion.<a href="./src/cloudflare/resources/zones/settings/opportunistic_onion.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/opportunistic_onion.py">Optional</a></code>
|
||||
|
||||
### OrangeToOrange
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import OrangeToOrange
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/orange_to_orange">client.zones.settings.orange_to_orange.<a href="./src/cloudflare/resources/zones/settings/orange_to_orange.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/orange_to_orange_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/orange_to_orange.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/orange_to_orange">client.zones.settings.orange_to_orange.<a href="./src/cloudflare/resources/zones/settings/orange_to_orange.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/orange_to_orange.py">Optional</a></code>
|
||||
|
||||
### OriginErrorPagePassThru
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import OriginErrorPagePassThru
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/origin_error_page_pass_thru">client.zones.settings.origin_error_page_pass_thru.<a href="./src/cloudflare/resources/zones/settings/origin_error_page_pass_thru.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/origin_error_page_pass_thru_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/origin_error_page_pass_thru.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/origin_error_page_pass_thru">client.zones.settings.origin_error_page_pass_thru.<a href="./src/cloudflare/resources/zones/settings/origin_error_page_pass_thru.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/origin_error_page_pass_thru.py">Optional</a></code>
|
||||
|
||||
### OriginMaxHTTPVersion
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import (
|
||||
from cloudflare.types.zones import (
|
||||
AdvancedDDoS,
|
||||
AlwaysOnline,
|
||||
AlwaysUseHTTPS,
|
||||
AutomaticHTTPSRewrites,
|
||||
AutomaticPlatformOptimization,
|
||||
Brotli,
|
||||
BrowserCacheTTL,
|
||||
BrowserCheck,
|
||||
CacheLevel,
|
||||
ChallengeTTL,
|
||||
Ciphers,
|
||||
DevelopmentMode,
|
||||
EarlyHints,
|
||||
EmailObfuscation,
|
||||
FontSettings,
|
||||
H2Prioritization,
|
||||
HotlinkProtection,
|
||||
HTTP2,
|
||||
HTTP3,
|
||||
ImageResizing,
|
||||
IPGeolocation,
|
||||
IPV6,
|
||||
MinTLSVersion,
|
||||
Minify,
|
||||
Mirage,
|
||||
MobileRedirect,
|
||||
NEL,
|
||||
OpportunisticEncryption,
|
||||
OpportunisticOnion,
|
||||
OrangeToOrange,
|
||||
OriginErrorPagePassThru,
|
||||
OriginMaxHTTPVersion,
|
||||
OriginMaxHTTPVersionEditResponse,
|
||||
OriginMaxHTTPVersionGetResponse,
|
||||
Polish,
|
||||
PrefetchPreload,
|
||||
ProxyReadTimeout,
|
||||
PseudoIPV4,
|
||||
ResponseBuffering,
|
||||
RocketLoader,
|
||||
SecurityHeaders,
|
||||
SecurityLevel,
|
||||
ServerSideExcludes,
|
||||
SortQueryStringForCache,
|
||||
SSL,
|
||||
SSLRecommender,
|
||||
TLS1_3,
|
||||
TLSClientAuth,
|
||||
TrueClientIPHeader,
|
||||
WAF,
|
||||
WebP,
|
||||
Websocket,
|
||||
ZeroRTT,
|
||||
SettingEditResponse,
|
||||
SettingGetResponse,
|
||||
)
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/origin_max_http_version">client.zones.settings.origin_max_http_version.<a href="./src/cloudflare/resources/zones/settings/origin_max_http_version.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/origin_max_http_version_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/origin_max_http_version_edit_response.py">OriginMaxHTTPVersionEditResponse</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/origin_max_http_version">client.zones.settings.origin_max_http_version.<a href="./src/cloudflare/resources/zones/settings/origin_max_http_version.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/origin_max_http_version_get_response.py">OriginMaxHTTPVersionGetResponse</a></code>
|
||||
|
||||
### Polish
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import Polish
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/polish">client.zones.settings.polish.<a href="./src/cloudflare/resources/zones/settings/polish.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/polish_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/polish.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/polish">client.zones.settings.polish.<a href="./src/cloudflare/resources/zones/settings/polish.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/polish.py">Optional</a></code>
|
||||
|
||||
### PrefetchPreload
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import PrefetchPreload
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/prefetch_preload">client.zones.settings.prefetch_preload.<a href="./src/cloudflare/resources/zones/settings/prefetch_preload.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/prefetch_preload_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/prefetch_preload.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/prefetch_preload">client.zones.settings.prefetch_preload.<a href="./src/cloudflare/resources/zones/settings/prefetch_preload.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/prefetch_preload.py">Optional</a></code>
|
||||
|
||||
### ProxyReadTimeout
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import ProxyReadTimeout
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/proxy_read_timeout">client.zones.settings.proxy_read_timeout.<a href="./src/cloudflare/resources/zones/settings/proxy_read_timeout.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/proxy_read_timeout_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/proxy_read_timeout.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/proxy_read_timeout">client.zones.settings.proxy_read_timeout.<a href="./src/cloudflare/resources/zones/settings/proxy_read_timeout.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/proxy_read_timeout.py">Optional</a></code>
|
||||
|
||||
### PseudoIPV4
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import PseudoIPV4
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/pseudo_ipv4">client.zones.settings.pseudo_ipv4.<a href="./src/cloudflare/resources/zones/settings/pseudo_ipv4.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/pseudo_ipv4_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/pseudo_ipv4.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/pseudo_ipv4">client.zones.settings.pseudo_ipv4.<a href="./src/cloudflare/resources/zones/settings/pseudo_ipv4.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/pseudo_ipv4.py">Optional</a></code>
|
||||
|
||||
### ResponseBuffering
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import ResponseBuffering
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/response_buffering">client.zones.settings.response_buffering.<a href="./src/cloudflare/resources/zones/settings/response_buffering.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/response_buffering_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/response_buffering.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/response_buffering">client.zones.settings.response_buffering.<a href="./src/cloudflare/resources/zones/settings/response_buffering.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/response_buffering.py">Optional</a></code>
|
||||
|
||||
### RocketLoader
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import RocketLoader
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/rocket_loader">client.zones.settings.rocket_loader.<a href="./src/cloudflare/resources/zones/settings/rocket_loader.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/rocket_loader_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/rocket_loader.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/rocket_loader">client.zones.settings.rocket_loader.<a href="./src/cloudflare/resources/zones/settings/rocket_loader.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/rocket_loader.py">Optional</a></code>
|
||||
|
||||
### SecurityHeaders
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import SecurityHeaders
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/security_header">client.zones.settings.security_headers.<a href="./src/cloudflare/resources/zones/settings/security_headers.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/security_header_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/security_headers.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/security_header">client.zones.settings.security_headers.<a href="./src/cloudflare/resources/zones/settings/security_headers.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/security_headers.py">Optional</a></code>
|
||||
|
||||
### SecurityLevel
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import SecurityLevel
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/security_level">client.zones.settings.security_level.<a href="./src/cloudflare/resources/zones/settings/security_level.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/security_level_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/security_level.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/security_level">client.zones.settings.security_level.<a href="./src/cloudflare/resources/zones/settings/security_level.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/security_level.py">Optional</a></code>
|
||||
|
||||
### ServerSideExcludes
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import ServerSideExcludes
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/server_side_exclude">client.zones.settings.server_side_excludes.<a href="./src/cloudflare/resources/zones/settings/server_side_excludes.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/server_side_exclude_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/server_side_excludes.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/server_side_exclude">client.zones.settings.server_side_excludes.<a href="./src/cloudflare/resources/zones/settings/server_side_excludes.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/server_side_excludes.py">Optional</a></code>
|
||||
|
||||
### SortQueryStringForCache
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import SortQueryStringForCache
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/sort_query_string_for_cache">client.zones.settings.sort_query_string_for_cache.<a href="./src/cloudflare/resources/zones/settings/sort_query_string_for_cache.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/sort_query_string_for_cache_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/sort_query_string_for_cache.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/sort_query_string_for_cache">client.zones.settings.sort_query_string_for_cache.<a href="./src/cloudflare/resources/zones/settings/sort_query_string_for_cache.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/sort_query_string_for_cache.py">Optional</a></code>
|
||||
|
||||
### SSL
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import SSL
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/ssl">client.zones.settings.ssl.<a href="./src/cloudflare/resources/zones/settings/ssl.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/ssl_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/ssl.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/ssl">client.zones.settings.ssl.<a href="./src/cloudflare/resources/zones/settings/ssl.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/ssl.py">Optional</a></code>
|
||||
|
||||
### SSLRecommender
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import SSLRecommender
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/ssl_recommender">client.zones.settings.ssl_recommender.<a href="./src/cloudflare/resources/zones/settings/ssl_recommender.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/ssl_recommender_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/ssl_recommender.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/ssl_recommender">client.zones.settings.ssl_recommender.<a href="./src/cloudflare/resources/zones/settings/ssl_recommender.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/ssl_recommender.py">Optional</a></code>
|
||||
|
||||
### TLS1_3
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import TLS1_3
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/tls_1_3">client.zones.settings.tls_1_3.<a href="./src/cloudflare/resources/zones/settings/tls_1_3.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/tls_1_3_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/tls_1_3.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/tls_1_3">client.zones.settings.tls_1_3.<a href="./src/cloudflare/resources/zones/settings/tls_1_3.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/tls_1_3.py">Optional</a></code>
|
||||
|
||||
### TLSClientAuth
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import TLSClientAuth
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/tls_client_auth">client.zones.settings.tls_client_auth.<a href="./src/cloudflare/resources/zones/settings/tls_client_auth.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/tls_client_auth_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/tls_client_auth.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/tls_client_auth">client.zones.settings.tls_client_auth.<a href="./src/cloudflare/resources/zones/settings/tls_client_auth.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/tls_client_auth.py">Optional</a></code>
|
||||
|
||||
### TrueClientIPHeader
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import TrueClientIPHeader
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/true_client_ip_header">client.zones.settings.true_client_ip_header.<a href="./src/cloudflare/resources/zones/settings/true_client_ip_header.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/true_client_ip_header_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/true_client_ip_header.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/true_client_ip_header">client.zones.settings.true_client_ip_header.<a href="./src/cloudflare/resources/zones/settings/true_client_ip_header.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/true_client_ip_header.py">Optional</a></code>
|
||||
|
||||
### WAF
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import WAF
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/waf">client.zones.settings.waf.<a href="./src/cloudflare/resources/zones/settings/waf.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/waf_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/waf.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/waf">client.zones.settings.waf.<a href="./src/cloudflare/resources/zones/settings/waf.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/waf.py">Optional</a></code>
|
||||
|
||||
### WebP
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import WebP
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/webp">client.zones.settings.webp.<a href="./src/cloudflare/resources/zones/settings/webp.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/webp_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/webp.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/webp">client.zones.settings.webp.<a href="./src/cloudflare/resources/zones/settings/webp.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/webp.py">Optional</a></code>
|
||||
|
||||
### Websocket
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import Websocket
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/websockets">client.zones.settings.websocket.<a href="./src/cloudflare/resources/zones/settings/websocket.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/websocket_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/websocket.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/websockets">client.zones.settings.websocket.<a href="./src/cloudflare/resources/zones/settings/websocket.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/websocket.py">Optional</a></code>
|
||||
|
||||
### FontSettings
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zones.settings import FontSettings
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="patch /zones/{zone_id}/settings/fonts">client.zones.settings.font_settings.<a href="./src/cloudflare/resources/zones/settings/font_settings.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/settings/font_setting_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/settings/font_settings.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/fonts">client.zones.settings.font_settings.<a href="./src/cloudflare/resources/zones/settings/font_settings.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/settings/font_settings.py">Optional</a></code>
|
||||
- <code title="patch /zones/{zone_id}/settings/{setting_id}">client.zones.settings.<a href="./src/cloudflare/resources/zones/settings.py">edit</a>(setting_id, \*, zone_id, \*\*<a href="src/cloudflare/types/zones/setting_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/setting_edit_response.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/settings/{setting_id}">client.zones.settings.<a href="./src/cloudflare/resources/zones/settings.py">get</a>(setting_id, \*, zone_id) -> <a href="./src/cloudflare/types/zones/setting_get_response.py">Optional</a></code>
|
||||
|
||||
## CustomNameservers
|
||||
|
||||
|
|
@ -1699,11 +1098,11 @@ from cloudflare.types.dns import (
|
|||
|
||||
Methods:
|
||||
|
||||
- <code title="post /accounts/{account_id}/dns_firewall">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_create_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Firewall</a></code>
|
||||
- <code title="post /accounts/{account_id}/dns_firewall">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_create_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Optional</a></code>
|
||||
- <code title="get /accounts/{account_id}/dns_firewall">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_list_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">SyncV4PagePaginationArray[Firewall]</a></code>
|
||||
- <code title="delete /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">delete</a>(dns_firewall_id, \*, account_id) -> <a href="./src/cloudflare/types/dns/firewall_delete_response.py">FirewallDeleteResponse</a></code>
|
||||
- <code title="patch /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">edit</a>(dns_firewall_id, \*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Firewall</a></code>
|
||||
- <code title="get /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">get</a>(dns_firewall_id, \*, account_id) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Firewall</a></code>
|
||||
- <code title="delete /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">delete</a>(dns_firewall_id, \*, account_id) -> <a href="./src/cloudflare/types/dns/firewall_delete_response.py">Optional</a></code>
|
||||
- <code title="patch /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">edit</a>(dns_firewall_id, \*, account_id, \*\*<a href="src/cloudflare/types/dns/firewall_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Optional</a></code>
|
||||
- <code title="get /accounts/{account_id}/dns_firewall/{dns_firewall_id}">client.dns.firewall.<a href="./src/cloudflare/resources/dns/firewall/firewall.py">get</a>(dns_firewall_id, \*, account_id) -> <a href="./src/cloudflare/types/dns/firewall/firewall.py">Optional</a></code>
|
||||
|
||||
### Analytics
|
||||
|
||||
|
|
@ -2993,7 +2392,7 @@ from cloudflare.types.api_gateway.discovery import OperationEditResponse
|
|||
|
||||
Methods:
|
||||
|
||||
- <code title="get /zones/{zone_id}/api_gateway/discovery/operations">client.api_gateway.discovery.operations.<a href="./src/cloudflare/resources/api_gateway/discovery/operations.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/discovery/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/discovery_operation.py">SyncSinglePage[DiscoveryOperation]</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/discovery/operations">client.api_gateway.discovery.operations.<a href="./src/cloudflare/resources/api_gateway/discovery/operations.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/discovery/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/discovery_operation.py">SyncV4PagePaginationArray[DiscoveryOperation]</a></code>
|
||||
- <code title="patch /zones/{zone_id}/api_gateway/discovery/operations/{operation_id}">client.api_gateway.discovery.operations.<a href="./src/cloudflare/resources/api_gateway/discovery/operations.py">edit</a>(operation_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/discovery/operation_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/discovery/operation_edit_response.py">OperationEditResponse</a></code>
|
||||
|
||||
## Operations
|
||||
|
|
@ -3001,15 +2400,21 @@ Methods:
|
|||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.api_gateway import APIShield, OperationCreateResponse, OperationDeleteResponse
|
||||
from cloudflare.types.api_gateway import (
|
||||
APIShield,
|
||||
OperationCreateResponse,
|
||||
OperationListResponse,
|
||||
OperationDeleteResponse,
|
||||
OperationGetResponse,
|
||||
)
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="post /zones/{zone_id}/api_gateway/operations">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_create_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_create_response.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/operations">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/api_shield.py">SyncSinglePage[APIShield]</a></code>
|
||||
- <code title="post /zones/{zone_id}/api_gateway/operations">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_create_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_create_response.py">OperationCreateResponse</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/operations">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_list_response.py">SyncV4PagePaginationArray[OperationListResponse]</a></code>
|
||||
- <code title="delete /zones/{zone_id}/api_gateway/operations/{operation_id}">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">delete</a>(operation_id, \*, zone_id) -> <a href="./src/cloudflare/types/api_gateway/operation_delete_response.py">OperationDeleteResponse</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/operations/{operation_id}">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">get</a>(operation_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_get_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/api_shield.py">APIShield</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/operations/{operation_id}">client.api_gateway.operations.<a href="./src/cloudflare/resources/api_gateway/operations/operations.py">get</a>(operation_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/operation_get_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/operation_get_response.py">OperationGetResponse</a></code>
|
||||
|
||||
### SchemaValidation
|
||||
|
||||
|
|
@ -3073,8 +2478,8 @@ from cloudflare.types.api_gateway import (
|
|||
Methods:
|
||||
|
||||
- <code title="post /zones/{zone_id}/api_gateway/user_schemas">client.api_gateway.user_schemas.<a href="./src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schema_create_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/schema_upload.py">SchemaUpload</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/user_schemas">client.api_gateway.user_schemas.<a href="./src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schema_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/public_schema.py">SyncSinglePage[PublicSchema]</a></code>
|
||||
- <code title="delete /zones/{zone_id}/api_gateway/user_schemas/{schema_id}">client.api_gateway.user_schemas.<a href="./src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py">delete</a>(schema_id, \*, zone_id) -> <a href="./src/cloudflare/types/api_gateway/user_schema_delete_response.py">UserSchemaDeleteResponse</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/user_schemas">client.api_gateway.user_schemas.<a href="./src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py">list</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schema_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/public_schema.py">SyncV4PagePaginationArray[PublicSchema]</a></code>
|
||||
- <code title="delete /zones/{zone_id}/api_gateway/user_schemas/{schema_id}">client.api_gateway.user_schemas.<a href="./src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py">delete</a>(schema_id, \*, zone_id) -> <a href="./src/cloudflare/types/api_gateway/user_schema_delete_response.py">Optional</a></code>
|
||||
- <code title="patch /zones/{zone_id}/api_gateway/user_schemas/{schema_id}">client.api_gateway.user_schemas.<a href="./src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py">edit</a>(schema_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schema_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/public_schema.py">PublicSchema</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/user_schemas/{schema_id}">client.api_gateway.user_schemas.<a href="./src/cloudflare/resources/api_gateway/user_schemas/user_schemas.py">get</a>(schema_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schema_get_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/public_schema.py">PublicSchema</a></code>
|
||||
|
||||
|
|
@ -3088,7 +2493,7 @@ from cloudflare.types.api_gateway.user_schemas import OperationListResponse
|
|||
|
||||
Methods:
|
||||
|
||||
- <code title="get /zones/{zone_id}/api_gateway/user_schemas/{schema_id}/operations">client.api_gateway.user_schemas.operations.<a href="./src/cloudflare/resources/api_gateway/user_schemas/operations.py">list</a>(schema_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schemas/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py">SyncSinglePage[OperationListResponse]</a></code>
|
||||
- <code title="get /zones/{zone_id}/api_gateway/user_schemas/{schema_id}/operations">client.api_gateway.user_schemas.operations.<a href="./src/cloudflare/resources/api_gateway/user_schemas/operations.py">list</a>(schema_id, \*, zone_id, \*\*<a href="src/cloudflare/types/api_gateway/user_schemas/operation_list_params.py">params</a>) -> <a href="./src/cloudflare/types/api_gateway/user_schemas/operation_list_response.py">SyncV4PagePaginationArray[OperationListResponse]</a></code>
|
||||
|
||||
# ManagedHeaders
|
||||
|
||||
|
|
@ -3929,7 +3334,7 @@ from cloudflare.types.intel.attack_surface_report import IssueTypeGetResponse
|
|||
|
||||
Methods:
|
||||
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issue-types">client.intel.attack_surface_report.issue_types.<a href="./src/cloudflare/resources/intel/attack_surface_report/issue_types.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_type_get_response.py">IssueTypeGetResponse</a></code>
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issue-types">client.intel.attack_surface_report.issue_types.<a href="./src/cloudflare/resources/intel/attack_surface_report/issue_types.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_type_get_response.py">Optional</a></code>
|
||||
|
||||
### Issues
|
||||
|
||||
|
|
@ -3950,10 +3355,10 @@ from cloudflare.types.intel.attack_surface_report import (
|
|||
Methods:
|
||||
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_list_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_list_response.py">SyncV4PagePagination[IssueListResponse]</a></code>
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/class">client.intel.attack*surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">class*</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_class_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_class_response.py">IssueClassResponse</a></code>
|
||||
- <code title="put /accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">dismiss</a>(issue_id, \*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py">IssueDismissResponse</a></code>
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/severity">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">severity</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_severity_response.py">IssueSeverityResponse</a></code>
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/type">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">type</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_type_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_type_response.py">IssueTypeResponse</a></code>
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/class">client.intel.attack*surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">class*</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_class_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_class_response.py">Optional</a></code>
|
||||
- <code title="put /accounts/{account_id}/intel/attack-surface-report/{issue_id}/dismiss">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">dismiss</a>(issue_id, \*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_dismiss_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_dismiss_response.py">Optional</a></code>
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/severity">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">severity</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_severity_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_severity_response.py">Optional</a></code>
|
||||
- <code title="get /accounts/{account_id}/intel/attack-surface-report/issues/type">client.intel.attack_surface_report.issues.<a href="./src/cloudflare/resources/intel/attack_surface_report/issues.py">type</a>(\*, account_id, \*\*<a href="src/cloudflare/types/intel/attack_surface_report/issue_type_params.py">params</a>) -> <a href="./src/cloudflare/types/intel/attack_surface_report/issue_type_response.py">Optional</a></code>
|
||||
|
||||
# MagicTransit
|
||||
|
||||
|
|
@ -6097,7 +5502,7 @@ Methods:
|
|||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.zero_trust.gateway import Location, LocationNetwork, LocationDeleteResponse
|
||||
from cloudflare.types.zero_trust.gateway import Location, LocationDeleteResponse
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
|
@ -6726,22 +6131,6 @@ Methods:
|
|||
- <code title="get /radar/as112/top/locations/ip_version/{ip_version}">client.radar.as112.top.<a href="./src/cloudflare/resources/radar/as112/top.py">ip_version</a>(ip_version, \*\*<a href="src/cloudflare/types/radar/as112/top_ip_version_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/as112/top_ip_version_response.py">TopIPVersionResponse</a></code>
|
||||
- <code title="get /radar/as112/top/locations">client.radar.as112.top.<a href="./src/cloudflare/resources/radar/as112/top.py">locations</a>(\*\*<a href="src/cloudflare/types/radar/as112/top_locations_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/as112/top_locations_response.py">TopLocationsResponse</a></code>
|
||||
|
||||
## ConnectionTampering
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.radar import (
|
||||
ConnectionTamperingSummaryResponse,
|
||||
ConnectionTamperingTimeseriesGroupsResponse,
|
||||
)
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="get /radar/connection_tampering/summary">client.radar.connection_tampering.<a href="./src/cloudflare/resources/radar/connection_tampering.py">summary</a>(\*\*<a href="src/cloudflare/types/radar/connection_tampering_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/connection_tampering_summary_response.py">ConnectionTamperingSummaryResponse</a></code>
|
||||
- <code title="get /radar/connection_tampering/timeseries_groups">client.radar.connection_tampering.<a href="./src/cloudflare/resources/radar/connection_tampering.py">timeseries_groups</a>(\*\*<a href="src/cloudflare/types/radar/connection_tampering_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/connection_tampering_timeseries_groups_response.py">ConnectionTamperingTimeseriesGroupsResponse</a></code>
|
||||
|
||||
## Email
|
||||
|
||||
Types:
|
||||
|
|
@ -7552,6 +6941,22 @@ Methods:
|
|||
|
||||
- <code title="get /radar/traffic_anomalies/locations">client.radar.traffic_anomalies.locations.<a href="./src/cloudflare/resources/radar/traffic_anomalies/locations.py">get</a>(\*\*<a href="src/cloudflare/types/radar/traffic_anomalies/location_get_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/traffic_anomalies/location_get_response.py">LocationGetResponse</a></code>
|
||||
|
||||
## TCPResetsTimeouts
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.radar import (
|
||||
TCPResetsTimeoutSummaryResponse,
|
||||
TCPResetsTimeoutTimeseriesGroupsResponse,
|
||||
)
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="get /radar/tcp_resets_timeouts/summary">client.radar.tcp_resets_timeouts.<a href="./src/cloudflare/resources/radar/tcp_resets_timeouts.py">summary</a>(\*\*<a href="src/cloudflare/types/radar/tcp_resets_timeout_summary_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/tcp_resets_timeout_summary_response.py">TCPResetsTimeoutSummaryResponse</a></code>
|
||||
- <code title="get /radar/tcp_resets_timeouts/timeseries_groups">client.radar.tcp_resets_timeouts.<a href="./src/cloudflare/resources/radar/tcp_resets_timeouts.py">timeseries_groups</a>(\*\*<a href="src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_params.py">params</a>) -> <a href="./src/cloudflare/types/radar/tcp_resets_timeout_timeseries_groups_response.py">TCPResetsTimeoutTimeseriesGroupsResponse</a></code>
|
||||
|
||||
# BotManagement
|
||||
|
||||
Types:
|
||||
|
|
@ -7929,3 +7334,18 @@ Methods:
|
|||
- <code title="get /accounts/{account_id}/iam/resource_groups">client.iam.resource_groups.<a href="./src/cloudflare/resources/iam/resource_groups.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/iam/resource_group_list_params.py">params</a>) -> <a href="./src/cloudflare/types/iam/resource_group_list_response.py">SyncV4PagePaginationArray[object]</a></code>
|
||||
- <code title="delete /accounts/{account_id}/iam/resource_groups/{resource_group_id}">client.iam.resource_groups.<a href="./src/cloudflare/resources/iam/resource_groups.py">delete</a>(resource_group_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/resource_group_delete_response.py">Optional</a></code>
|
||||
- <code title="get /accounts/{account_id}/iam/resource_groups/{resource_group_id}">client.iam.resource_groups.<a href="./src/cloudflare/resources/iam/resource_groups.py">get</a>(resource_group_id, \*, account_id) -> <a href="./src/cloudflare/types/iam/resource_group_get_response.py">ResourceGroupGetResponse</a></code>
|
||||
|
||||
# CloudConnector
|
||||
|
||||
## Rules
|
||||
|
||||
Types:
|
||||
|
||||
```python
|
||||
from cloudflare.types.cloud_connector import RuleUpdateResponse, RuleListResponse
|
||||
```
|
||||
|
||||
Methods:
|
||||
|
||||
- <code title="put /zones/{zone_id}/cloud_connector/rules">client.cloud_connector.rules.<a href="./src/cloudflare/resources/cloud_connector/rules.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/cloud_connector/rule_update_params.py">params</a>) -> <a href="./src/cloudflare/types/cloud_connector/rule_update_response.py">Optional</a></code>
|
||||
- <code title="get /zones/{zone_id}/cloud_connector/rules">client.cloud_connector.rules.<a href="./src/cloudflare/resources/cloud_connector/rules.py">list</a>(\*, zone_id) -> <a href="./src/cloudflare/types/cloud_connector/rule_list_response.py">SyncSinglePage[RuleListResponse]</a></code>
|
||||
|
|
|
|||
|
|
@ -3,4 +3,7 @@
|
|||
set -eux
|
||||
mkdir -p dist
|
||||
rye build --clean
|
||||
# Patching importlib-metadata version until upstream library version is updated
|
||||
# https://github.com/pypa/twine/issues/977#issuecomment-2189800841
|
||||
"$HOME/.rye/self/bin/python3" -m pip install 'importlib-metadata==7.2.1'
|
||||
rye publish --yes --token=$PYPI_TOKEN
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "cloudflare"
|
||||
version = "3.0.1"
|
||||
version = "3.1.0"
|
||||
description = "The official Python library for the cloudflare API"
|
||||
dynamic = ["readme"]
|
||||
license = "Apache-2.0"
|
||||
|
|
@ -58,6 +58,7 @@ dev-dependencies = [
|
|||
"nox",
|
||||
"dirty-equals>=0.6.0",
|
||||
"importlib-metadata>=6.7.0",
|
||||
"rich>=13.7.1",
|
||||
|
||||
]
|
||||
|
||||
|
|
@ -99,6 +100,21 @@ include = [
|
|||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/cloudflare"]
|
||||
|
||||
[tool.hatch.build.targets.sdist]
|
||||
# Basically everything except hidden files/directories (such as .github, .devcontainers, .python-version, etc)
|
||||
include = [
|
||||
"/*.toml",
|
||||
"/*.json",
|
||||
"/*.lock",
|
||||
"/*.md",
|
||||
"/mypy.ini",
|
||||
"/noxfile.py",
|
||||
"bin/*",
|
||||
"examples/*",
|
||||
"src/*",
|
||||
"tests/*",
|
||||
]
|
||||
|
||||
[tool.hatch.metadata.hooks.fancy-pypi-readme]
|
||||
content-type = "text/markdown"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@
|
|||
# features: []
|
||||
# all-features: true
|
||||
# with-sources: false
|
||||
# generate-hashes: false
|
||||
|
||||
-e file:.
|
||||
annotated-types==0.6.0
|
||||
# via pydantic
|
||||
anyio==4.1.0
|
||||
anyio==4.4.0
|
||||
# via cloudflare
|
||||
# via httpx
|
||||
argcomplete==3.1.2
|
||||
|
|
@ -44,7 +45,11 @@ idna==3.4
|
|||
importlib-metadata==7.0.0
|
||||
iniconfig==2.0.0
|
||||
# via pytest
|
||||
mypy==1.7.1
|
||||
markdown-it-py==3.0.0
|
||||
# via rich
|
||||
mdurl==0.1.2
|
||||
# via markdown-it-py
|
||||
mypy==1.10.1
|
||||
mypy-extensions==1.0.0
|
||||
# via mypy
|
||||
nodeenv==1.8.0
|
||||
|
|
@ -63,6 +68,8 @@ pydantic==2.7.1
|
|||
# via cloudflare
|
||||
pydantic-core==2.18.2
|
||||
# via pydantic
|
||||
pygments==2.18.0
|
||||
# via rich
|
||||
pyright==1.1.364
|
||||
pytest==7.1.1
|
||||
# via pytest-asyncio
|
||||
|
|
@ -72,6 +79,7 @@ python-dateutil==2.8.2
|
|||
pytz==2023.3.post1
|
||||
# via dirty-equals
|
||||
respx==0.20.2
|
||||
rich==13.7.1
|
||||
ruff==0.1.9
|
||||
setuptools==68.2.2
|
||||
# via nodeenv
|
||||
|
|
@ -86,6 +94,7 @@ tomli==2.0.1
|
|||
# via mypy
|
||||
# via pytest
|
||||
typing-extensions==4.8.0
|
||||
# via anyio
|
||||
# via cloudflare
|
||||
# via mypy
|
||||
# via pydantic
|
||||
|
|
|
|||
|
|
@ -6,11 +6,12 @@
|
|||
# features: []
|
||||
# all-features: true
|
||||
# with-sources: false
|
||||
# generate-hashes: false
|
||||
|
||||
-e file:.
|
||||
annotated-types==0.6.0
|
||||
# via pydantic
|
||||
anyio==4.1.0
|
||||
anyio==4.4.0
|
||||
# via cloudflare
|
||||
# via httpx
|
||||
certifi==2023.7.22
|
||||
|
|
@ -38,6 +39,7 @@ sniffio==1.3.0
|
|||
# via cloudflare
|
||||
# via httpx
|
||||
typing-extensions==4.8.0
|
||||
# via anyio
|
||||
# via cloudflare
|
||||
# via pydantic
|
||||
# via pydantic-core
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ from ._types import (
|
|||
HttpxSendArgs,
|
||||
AsyncTransport,
|
||||
RequestOptions,
|
||||
HttpxRequestFiles,
|
||||
ModelBuilderProtocol,
|
||||
)
|
||||
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
|
||||
|
|
@ -459,6 +460,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|||
headers = self._build_headers(options)
|
||||
params = _merge_mappings(self.default_query, options.params)
|
||||
content_type = headers.get("Content-Type")
|
||||
files = options.files
|
||||
|
||||
# If the given Content-Type header is multipart/form-data then it
|
||||
# has to be removed so that httpx can generate the header with
|
||||
|
|
@ -472,7 +474,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|||
headers.pop("Content-Type")
|
||||
|
||||
# As we are now sending multipart/form-data instead of application/json
|
||||
# we need to tell httpx to use it, https://www.python-httpx.org/advanced/#multipart-file-encoding
|
||||
# we need to tell httpx to use it, https://www.python-httpx.org/advanced/clients/#multipart-file-encoding
|
||||
if json_data:
|
||||
if not is_dict(json_data):
|
||||
raise TypeError(
|
||||
|
|
@ -480,6 +482,15 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|||
)
|
||||
kwargs["data"] = self._serialize_multipartform(json_data)
|
||||
|
||||
# httpx determines whether or not to send a "multipart/form-data"
|
||||
# request based on the truthiness of the "files" argument.
|
||||
# This gets around that issue by generating a dict value that
|
||||
# evaluates to true.
|
||||
#
|
||||
# https://github.com/encode/httpx/discussions/2399#discussioncomment-3814186
|
||||
if not files:
|
||||
files = cast(HttpxRequestFiles, ForceMultipartDict())
|
||||
|
||||
# TODO: report this error to httpx
|
||||
return self._client.build_request( # pyright: ignore[reportUnknownMemberType]
|
||||
headers=headers,
|
||||
|
|
@ -492,7 +503,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|||
# https://github.com/microsoft/pyright/issues/3526#event-6715453066
|
||||
params=self.qs.stringify(cast(Mapping[str, Any], params)) if params else None,
|
||||
json=json_data,
|
||||
files=options.files,
|
||||
files=files,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
|
|
@ -868,9 +879,9 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|||
def _prepare_options(
|
||||
self,
|
||||
options: FinalRequestOptions, # noqa: ARG002
|
||||
) -> None:
|
||||
) -> FinalRequestOptions:
|
||||
"""Hook for mutating the given options"""
|
||||
return None
|
||||
return options
|
||||
|
||||
def _prepare_request(
|
||||
self,
|
||||
|
|
@ -944,8 +955,13 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|||
stream: bool,
|
||||
stream_cls: type[_StreamT] | None,
|
||||
) -> ResponseT | _StreamT:
|
||||
# create a copy of the options we were given so that if the
|
||||
# options are mutated later & we then retry, the retries are
|
||||
# given the original options
|
||||
input_options = model_copy(options)
|
||||
|
||||
cast_to = self._maybe_override_cast_to(cast_to, options)
|
||||
self._prepare_options(options)
|
||||
options = self._prepare_options(options)
|
||||
|
||||
retries = self._remaining_retries(remaining_retries, options)
|
||||
request = self._build_request(options)
|
||||
|
|
@ -968,7 +984,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|||
|
||||
if retries > 0:
|
||||
return self._retry_request(
|
||||
options,
|
||||
input_options,
|
||||
cast_to,
|
||||
retries,
|
||||
stream=stream,
|
||||
|
|
@ -983,7 +999,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|||
|
||||
if retries > 0:
|
||||
return self._retry_request(
|
||||
options,
|
||||
input_options,
|
||||
cast_to,
|
||||
retries,
|
||||
stream=stream,
|
||||
|
|
@ -1011,7 +1027,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
|
|||
if retries > 0 and self._should_retry(err.response):
|
||||
err.response.close()
|
||||
return self._retry_request(
|
||||
options,
|
||||
input_options,
|
||||
cast_to,
|
||||
retries,
|
||||
err.response.headers,
|
||||
|
|
@ -1426,9 +1442,9 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|||
async def _prepare_options(
|
||||
self,
|
||||
options: FinalRequestOptions, # noqa: ARG002
|
||||
) -> None:
|
||||
) -> FinalRequestOptions:
|
||||
"""Hook for mutating the given options"""
|
||||
return None
|
||||
return options
|
||||
|
||||
async def _prepare_request(
|
||||
self,
|
||||
|
|
@ -1507,8 +1523,13 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|||
# execute it earlier while we are in an async context
|
||||
self._platform = await asyncify(get_platform)()
|
||||
|
||||
# create a copy of the options we were given so that if the
|
||||
# options are mutated later & we then retry, the retries are
|
||||
# given the original options
|
||||
input_options = model_copy(options)
|
||||
|
||||
cast_to = self._maybe_override_cast_to(cast_to, options)
|
||||
await self._prepare_options(options)
|
||||
options = await self._prepare_options(options)
|
||||
|
||||
retries = self._remaining_retries(remaining_retries, options)
|
||||
request = self._build_request(options)
|
||||
|
|
@ -1529,7 +1550,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|||
|
||||
if retries > 0:
|
||||
return await self._retry_request(
|
||||
options,
|
||||
input_options,
|
||||
cast_to,
|
||||
retries,
|
||||
stream=stream,
|
||||
|
|
@ -1544,7 +1565,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|||
|
||||
if retries > 0:
|
||||
return await self._retry_request(
|
||||
options,
|
||||
input_options,
|
||||
cast_to,
|
||||
retries,
|
||||
stream=stream,
|
||||
|
|
@ -1567,7 +1588,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
|
|||
if retries > 0 and self._should_retry(err.response):
|
||||
await err.response.aclose()
|
||||
return await self._retry_request(
|
||||
options,
|
||||
input_options,
|
||||
cast_to,
|
||||
retries,
|
||||
err.response.headers,
|
||||
|
|
@ -1863,6 +1884,11 @@ def make_request_options(
|
|||
return options
|
||||
|
||||
|
||||
class ForceMultipartDict(Dict[str, None]):
|
||||
def __bool__(self) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
class OtherPlatform:
|
||||
def __init__(self, name: str) -> None:
|
||||
self.name = name
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ class Cloudflare(SyncAPIClient):
|
|||
event_notifications: resources.EventNotificationsResource
|
||||
ai_gateway: resources.AIGatewayResource
|
||||
iam: resources.IAMResource
|
||||
cloud_connector: resources.CloudConnectorResource
|
||||
with_raw_response: CloudflareWithRawResponse
|
||||
with_streaming_response: CloudflareWithStreamedResponse
|
||||
|
||||
|
|
@ -290,13 +291,14 @@ class Cloudflare(SyncAPIClient):
|
|||
self.event_notifications = resources.EventNotificationsResource(self)
|
||||
self.ai_gateway = resources.AIGatewayResource(self)
|
||||
self.iam = resources.IAMResource(self)
|
||||
self.cloud_connector = resources.CloudConnectorResource(self)
|
||||
self.with_raw_response = CloudflareWithRawResponse(self)
|
||||
self.with_streaming_response = CloudflareWithStreamedResponse(self)
|
||||
|
||||
@property
|
||||
@override
|
||||
def qs(self) -> Querystring:
|
||||
return Querystring(array_format="repeat")
|
||||
return Querystring(nested_format="dots", array_format="repeat")
|
||||
|
||||
@property
|
||||
@override
|
||||
|
|
@ -552,6 +554,7 @@ class AsyncCloudflare(AsyncAPIClient):
|
|||
event_notifications: resources.AsyncEventNotificationsResource
|
||||
ai_gateway: resources.AsyncAIGatewayResource
|
||||
iam: resources.AsyncIAMResource
|
||||
cloud_connector: resources.AsyncCloudConnectorResource
|
||||
with_raw_response: AsyncCloudflareWithRawResponse
|
||||
with_streaming_response: AsyncCloudflareWithStreamedResponse
|
||||
|
||||
|
|
@ -711,13 +714,14 @@ class AsyncCloudflare(AsyncAPIClient):
|
|||
self.event_notifications = resources.AsyncEventNotificationsResource(self)
|
||||
self.ai_gateway = resources.AsyncAIGatewayResource(self)
|
||||
self.iam = resources.AsyncIAMResource(self)
|
||||
self.cloud_connector = resources.AsyncCloudConnectorResource(self)
|
||||
self.with_raw_response = AsyncCloudflareWithRawResponse(self)
|
||||
self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self)
|
||||
|
||||
@property
|
||||
@override
|
||||
def qs(self) -> Querystring:
|
||||
return Querystring(array_format="repeat")
|
||||
return Querystring(nested_format="dots", array_format="repeat")
|
||||
|
||||
@property
|
||||
@override
|
||||
|
|
@ -984,6 +988,7 @@ class CloudflareWithRawResponse:
|
|||
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
|
||||
self.ai_gateway = resources.AIGatewayResourceWithRawResponse(client.ai_gateway)
|
||||
self.iam = resources.IAMResourceWithRawResponse(client.iam)
|
||||
self.cloud_connector = resources.CloudConnectorResourceWithRawResponse(client.cloud_connector)
|
||||
|
||||
|
||||
class AsyncCloudflareWithRawResponse:
|
||||
|
|
@ -1086,6 +1091,7 @@ class AsyncCloudflareWithRawResponse:
|
|||
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
|
||||
self.ai_gateway = resources.AsyncAIGatewayResourceWithRawResponse(client.ai_gateway)
|
||||
self.iam = resources.AsyncIAMResourceWithRawResponse(client.iam)
|
||||
self.cloud_connector = resources.AsyncCloudConnectorResourceWithRawResponse(client.cloud_connector)
|
||||
|
||||
|
||||
class CloudflareWithStreamedResponse:
|
||||
|
|
@ -1188,6 +1194,7 @@ class CloudflareWithStreamedResponse:
|
|||
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
|
||||
self.ai_gateway = resources.AIGatewayResourceWithStreamingResponse(client.ai_gateway)
|
||||
self.iam = resources.IAMResourceWithStreamingResponse(client.iam)
|
||||
self.cloud_connector = resources.CloudConnectorResourceWithStreamingResponse(client.cloud_connector)
|
||||
|
||||
|
||||
class AsyncCloudflareWithStreamedResponse:
|
||||
|
|
@ -1298,6 +1305,7 @@ class AsyncCloudflareWithStreamedResponse:
|
|||
)
|
||||
self.ai_gateway = resources.AsyncAIGatewayResourceWithStreamingResponse(client.ai_gateway)
|
||||
self.iam = resources.AsyncIAMResourceWithStreamingResponse(client.iam)
|
||||
self.cloud_connector = resources.AsyncCloudConnectorResourceWithStreamingResponse(client.cloud_connector)
|
||||
|
||||
|
||||
Client = Cloudflare
|
||||
|
|
|
|||
|
|
@ -118,10 +118,10 @@ def get_model_fields(model: type[pydantic.BaseModel]) -> dict[str, FieldInfo]:
|
|||
return model.__fields__ # type: ignore
|
||||
|
||||
|
||||
def model_copy(model: _ModelT) -> _ModelT:
|
||||
def model_copy(model: _ModelT, *, deep: bool = False) -> _ModelT:
|
||||
if PYDANTIC_V2:
|
||||
return model.model_copy()
|
||||
return model.copy() # type: ignore
|
||||
return model.model_copy(deep=deep)
|
||||
return model.copy(deep=deep) # type: ignore
|
||||
|
||||
|
||||
def model_json(model: pydantic.BaseModel, *, indent: int | None = None) -> str:
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ from typing_extensions import (
|
|||
ClassVar,
|
||||
Protocol,
|
||||
Required,
|
||||
ParamSpec,
|
||||
TypedDict,
|
||||
TypeGuard,
|
||||
final,
|
||||
|
|
@ -67,6 +68,9 @@ if TYPE_CHECKING:
|
|||
__all__ = ["BaseModel", "GenericModel"]
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_BaseModelT = TypeVar("_BaseModelT", bound="BaseModel")
|
||||
|
||||
P = ParamSpec("P")
|
||||
|
||||
|
||||
@runtime_checkable
|
||||
|
|
@ -379,6 +383,29 @@ def is_basemodel_type(type_: type) -> TypeGuard[type[BaseModel] | type[GenericMo
|
|||
return issubclass(origin, BaseModel) or issubclass(origin, GenericModel)
|
||||
|
||||
|
||||
def build(
|
||||
base_model_cls: Callable[P, _BaseModelT],
|
||||
*args: P.args,
|
||||
**kwargs: P.kwargs,
|
||||
) -> _BaseModelT:
|
||||
"""Construct a BaseModel class without validation.
|
||||
|
||||
This is useful for cases where you need to instantiate a `BaseModel`
|
||||
from an API response as this provides type-safe params which isn't supported
|
||||
by helpers like `construct_type()`.
|
||||
|
||||
```py
|
||||
build(MyModel, my_field_a="foo", my_field_b=123)
|
||||
```
|
||||
"""
|
||||
if args:
|
||||
raise TypeError(
|
||||
"Received positional arguments which are not supported; Keyword arguments must be used instead",
|
||||
)
|
||||
|
||||
return cast(_BaseModelT, construct_type(type_=base_model_cls, value=kwargs))
|
||||
|
||||
|
||||
def construct_type(*, value: object, type_: object) -> object:
|
||||
"""Loose coercion to the expected type with construction of nested values.
|
||||
|
||||
|
|
@ -616,6 +643,14 @@ def validate_type(*, type_: type[_T], value: object) -> _T:
|
|||
return cast(_T, _validate_non_model_type(type_=type_, value=value))
|
||||
|
||||
|
||||
def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:
|
||||
"""Add a pydantic config for the given type.
|
||||
|
||||
Note: this is a no-op on Pydantic v1.
|
||||
"""
|
||||
setattr(typ, "__pydantic_config__", config) # noqa: B010
|
||||
|
||||
|
||||
# our use of subclasssing here causes weirdness for type checkers,
|
||||
# so we just pretend that we don't subclass
|
||||
if TYPE_CHECKING:
|
||||
|
|
|
|||
|
|
@ -49,4 +49,7 @@ from ._transform import (
|
|||
maybe_transform as maybe_transform,
|
||||
async_maybe_transform as async_maybe_transform,
|
||||
)
|
||||
from ._reflection import function_has_argument as function_has_argument
|
||||
from ._reflection import (
|
||||
function_has_argument as function_has_argument,
|
||||
assert_signatures_in_sync as assert_signatures_in_sync,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import inspect
|
||||
from typing import Any, Callable
|
||||
|
||||
|
|
@ -6,3 +8,35 @@ def function_has_argument(func: Callable[..., Any], arg_name: str) -> bool:
|
|||
"""Returns whether or not the given function has a specific parameter"""
|
||||
sig = inspect.signature(func)
|
||||
return arg_name in sig.parameters
|
||||
|
||||
|
||||
def assert_signatures_in_sync(
|
||||
source_func: Callable[..., Any],
|
||||
check_func: Callable[..., Any],
|
||||
*,
|
||||
exclude_params: set[str] = set(),
|
||||
) -> None:
|
||||
"""Ensure that the signature of the second function matches the first."""
|
||||
|
||||
check_sig = inspect.signature(check_func)
|
||||
source_sig = inspect.signature(source_func)
|
||||
|
||||
errors: list[str] = []
|
||||
|
||||
for name, source_param in source_sig.parameters.items():
|
||||
if name in exclude_params:
|
||||
continue
|
||||
|
||||
custom_param = check_sig.parameters.get(name)
|
||||
if not custom_param:
|
||||
errors.append(f"the `{name}` param is missing")
|
||||
continue
|
||||
|
||||
if custom_param.annotation != source_param.annotation:
|
||||
errors.append(
|
||||
f"types for the `{name}` param are do not match; source={repr(source_param.annotation)} checking={repr(source_param.annotation)}"
|
||||
)
|
||||
continue
|
||||
|
||||
if errors:
|
||||
raise AssertionError(f"{len(errors)} errors encountered when comparing signatures:\n\n" + "\n\n".join(errors))
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
__title__ = "cloudflare"
|
||||
__version__ = "3.0.1" # x-release-please-version
|
||||
__version__ = "3.1.0" # x-release-please-version
|
||||
|
|
|
|||
|
|
@ -528,6 +528,14 @@ from .warp_connector import (
|
|||
WARPConnectorResourceWithStreamingResponse,
|
||||
AsyncWARPConnectorResourceWithStreamingResponse,
|
||||
)
|
||||
from .cloud_connector import (
|
||||
CloudConnectorResource,
|
||||
AsyncCloudConnectorResource,
|
||||
CloudConnectorResourceWithRawResponse,
|
||||
AsyncCloudConnectorResourceWithRawResponse,
|
||||
CloudConnectorResourceWithStreamingResponse,
|
||||
AsyncCloudConnectorResourceWithStreamingResponse,
|
||||
)
|
||||
from .durable_objects import (
|
||||
DurableObjectsResource,
|
||||
AsyncDurableObjectsResource,
|
||||
|
|
@ -1178,4 +1186,10 @@ __all__ = [
|
|||
"AsyncIAMResourceWithRawResponse",
|
||||
"IAMResourceWithStreamingResponse",
|
||||
"AsyncIAMResourceWithStreamingResponse",
|
||||
"CloudConnectorResource",
|
||||
"AsyncCloudConnectorResource",
|
||||
"CloudConnectorResourceWithRawResponse",
|
||||
"AsyncCloudConnectorResourceWithRawResponse",
|
||||
"CloudConnectorResourceWithStreamingResponse",
|
||||
"AsyncCloudConnectorResourceWithStreamingResponse",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -38,10 +38,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.accounts import account_list_params, account_update_params
|
||||
|
||||
__all__ = ["AccountsResource", "AsyncAccountsResource"]
|
||||
|
|
|
|||
|
|
@ -23,10 +23,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.accounts import member_list_params, member_create_params, member_update_params
|
||||
from ...types.accounts.member_get_response import MemberGetResponse
|
||||
from ...types.accounts.member_list_response import MemberListResponse
|
||||
|
|
|
|||
|
|
@ -17,10 +17,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.shared.role import Role
|
||||
|
||||
__all__ = ["RolesResource", "AsyncRolesResource"]
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.acm import CertificateAuthority, total_tls_create_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.acm.certificate_authority import CertificateAuthority
|
||||
from ...types.acm.total_tls_get_response import TotalTLSGetResponse
|
||||
from ...types.acm.total_tls_create_response import TotalTLSCreateResponse
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.addressing.address_maps import account_update_params
|
||||
from ....types.addressing.address_maps.account_delete_response import AccountDeleteResponse
|
||||
from ....types.addressing.address_maps.account_update_response import AccountUpdateResponse
|
||||
|
|
|
|||
|
|
@ -45,10 +45,7 @@ from ...._response import (
|
|||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.addressing import address_map_edit_params, address_map_create_params
|
||||
from ....types.addressing.address_map import AddressMap
|
||||
from ....types.addressing.address_map_get_response import AddressMapGetResponse
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.addressing.address_maps import ip_update_params
|
||||
from ....types.addressing.address_maps.ip_delete_response import IPDeleteResponse
|
||||
from ....types.addressing.address_maps.ip_update_response import IPUpdateResponse
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.addressing.address_maps import zone_update_params
|
||||
from ....types.addressing.address_maps.zone_delete_response import ZoneDeleteResponse
|
||||
from ....types.addressing.address_maps.zone_update_response import ZoneUpdateResponse
|
||||
|
|
|
|||
|
|
@ -19,9 +19,7 @@ from ...._response import (
|
|||
async_to_custom_raw_response_wrapper,
|
||||
async_to_custom_streamed_response_wrapper,
|
||||
)
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
|
||||
__all__ = ["DownloadsResource", "AsyncDownloadsResource"]
|
||||
|
||||
|
|
|
|||
|
|
@ -28,9 +28,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.addressing import loa_document_create_params
|
||||
from ....types.addressing.loa_document_create_response import LOADocumentCreateResponse
|
||||
|
||||
|
|
@ -80,6 +78,10 @@ class LOADocumentsResource(SyncAPIResource):
|
|||
"""
|
||||
if not account_id:
|
||||
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
return self._post(
|
||||
f"/accounts/{account_id}/addressing/loa_documents",
|
||||
body=maybe_transform({"loa_document": loa_document}, loa_document_create_params.LOADocumentCreateParams),
|
||||
|
|
@ -137,6 +139,10 @@ class AsyncLOADocumentsResource(AsyncAPIResource):
|
|||
"""
|
||||
if not account_id:
|
||||
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
return await self._post(
|
||||
f"/accounts/{account_id}/addressing/loa_documents",
|
||||
body=await async_maybe_transform(
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ from ....._response import (
|
|||
)
|
||||
from ....._wrappers import ResultWrapper
|
||||
from .....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ....._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ....._base_client import AsyncPaginator, make_request_options
|
||||
from .....types.addressing.prefixes.bgp import binding_create_params
|
||||
from .....types.addressing.prefixes.bgp.service_binding import ServiceBinding
|
||||
from .....types.addressing.prefixes.bgp.binding_delete_response import BindingDeleteResponse
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ from ....._response import (
|
|||
)
|
||||
from ....._wrappers import ResultWrapper
|
||||
from .....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ....._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ....._base_client import AsyncPaginator, make_request_options
|
||||
from .....types.addressing.prefixes.bgp import prefix_edit_params
|
||||
from .....types.addressing.prefixes.bgp.bgp_prefix import BGPPrefix
|
||||
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ....._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ....._wrappers import ResultWrapper
|
||||
from ....._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ....._base_client import make_request_options
|
||||
from .....types.addressing.prefixes.bgp import status_edit_params
|
||||
from .....types.addressing.prefixes.bgp.status_get_response import StatusGetResponse
|
||||
from .....types.addressing.prefixes.bgp.status_edit_response import StatusEditResponse
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ from ...._response import (
|
|||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.addressing.prefixes import delegation_create_params
|
||||
from ....types.addressing.prefixes.delegations import Delegations
|
||||
from ....types.addressing.prefixes.delegation_delete_response import DelegationDeleteResponse
|
||||
|
|
|
|||
|
|
@ -38,10 +38,7 @@ from ...._response import (
|
|||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.addressing import prefix_edit_params, prefix_create_params
|
||||
from ....types.addressing.prefix import Prefix
|
||||
from ....types.addressing.prefix_delete_response import PrefixDeleteResponse
|
||||
|
|
|
|||
|
|
@ -29,10 +29,7 @@ from ...._response import (
|
|||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.addressing import regional_hostname_edit_params, regional_hostname_create_params
|
||||
from ....types.addressing.regional_hostname_get_response import RegionalHostnameGetResponse
|
||||
from ....types.addressing.regional_hostname_edit_response import RegionalHostnameEditResponse
|
||||
|
|
|
|||
|
|
@ -14,10 +14,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.addressing.regional_hostnames.region_list_response import RegionListResponse
|
||||
|
||||
__all__ = ["RegionsResource", "AsyncRegionsResource"]
|
||||
|
|
|
|||
|
|
@ -14,10 +14,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.addressing.service_list_response import ServiceListResponse
|
||||
|
||||
__all__ = ["ServicesResource", "AsyncServicesResource"]
|
||||
|
|
|
|||
|
|
@ -30,10 +30,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.ai_gateway import ai_gateway_list_params, ai_gateway_create_params, ai_gateway_update_params
|
||||
from ...types.ai_gateway.ai_gateway_get_response import AIGatewayGetResponse
|
||||
from ...types.ai_gateway.ai_gateway_list_response import AIGatewayListResponse
|
||||
|
|
|
|||
|
|
@ -19,10 +19,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.ai_gateway import log_list_params
|
||||
from ...types.ai_gateway.log_list_response import LogListResponse
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.alerting.available_alert_list_response import AvailableAlertListResponse
|
||||
|
||||
__all__ = ["AvailableAlertsResource", "AsyncAvailableAlertsResource"]
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.alerting.destinations.eligible_get_response import EligibleGetResponse
|
||||
|
||||
__all__ = ["EligibleResource", "AsyncEligibleResource"]
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.alerting.destinations.pagerduty_get_response import PagerdutyGetResponse
|
||||
from ....types.alerting.destinations.pagerduty_link_response import PagerdutyLinkResponse
|
||||
from ....types.alerting.destinations.pagerduty_create_response import PagerdutyCreateResponse
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ from ...._response import (
|
|||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.alerting.destinations import webhook_create_params, webhook_update_params
|
||||
from ....types.alerting.destinations.webhooks import Webhooks
|
||||
from ....types.alerting.destinations.webhook_create_response import WebhookCreateResponse
|
||||
|
|
|
|||
|
|
@ -18,10 +18,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.alerting import history_list_params
|
||||
from ...types.alerting.history import History
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.alerting import policy_create_params, policy_update_params
|
||||
from ...types.alerting.policy import Policy
|
||||
from ...types.alerting.mechanism_param import MechanismParam
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, List, Type, Iterable, cast
|
||||
from typing import List, Type, Iterable, cast
|
||||
from typing_extensions import Literal
|
||||
|
||||
import httpx
|
||||
|
|
@ -21,9 +21,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.api_gateway import configuration_get_params, configuration_update_params
|
||||
from ...types.api_gateway.configuration import Configuration
|
||||
from ...types.api_gateway.configuration_update_response import ConfigurationUpdateResponse
|
||||
|
|
@ -44,7 +42,7 @@ class ConfigurationsResource(SyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
zone_id: str,
|
||||
auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic] | NotGiven = NOT_GIVEN,
|
||||
auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic],
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -68,25 +66,16 @@ class ConfigurationsResource(SyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return cast(
|
||||
ConfigurationUpdateResponse,
|
||||
self._put(
|
||||
f"/zones/{zone_id}/api_gateway/configuration",
|
||||
body=maybe_transform(
|
||||
{"auth_id_characteristics": auth_id_characteristics},
|
||||
configuration_update_params.ConfigurationUpdateParams,
|
||||
),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[ConfigurationUpdateResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(
|
||||
Any, ResultWrapper[ConfigurationUpdateResponse]
|
||||
), # Union types cannot be passed in as arguments in the type system
|
||||
return self._put(
|
||||
f"/zones/{zone_id}/api_gateway/configuration",
|
||||
body=maybe_transform(
|
||||
{"auth_id_characteristics": auth_id_characteristics},
|
||||
configuration_update_params.ConfigurationUpdateParams,
|
||||
),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
||||
),
|
||||
cast_to=ConfigurationUpdateResponse,
|
||||
)
|
||||
|
||||
def get(
|
||||
|
|
@ -146,7 +135,7 @@ class AsyncConfigurationsResource(AsyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
zone_id: str,
|
||||
auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic] | NotGiven = NOT_GIVEN,
|
||||
auth_id_characteristics: Iterable[configuration_update_params.AuthIDCharacteristic],
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -170,25 +159,16 @@ class AsyncConfigurationsResource(AsyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return cast(
|
||||
ConfigurationUpdateResponse,
|
||||
await self._put(
|
||||
f"/zones/{zone_id}/api_gateway/configuration",
|
||||
body=await async_maybe_transform(
|
||||
{"auth_id_characteristics": auth_id_characteristics},
|
||||
configuration_update_params.ConfigurationUpdateParams,
|
||||
),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[ConfigurationUpdateResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(
|
||||
Any, ResultWrapper[ConfigurationUpdateResponse]
|
||||
), # Union types cannot be passed in as arguments in the type system
|
||||
return await self._put(
|
||||
f"/zones/{zone_id}/api_gateway/configuration",
|
||||
body=await async_maybe_transform(
|
||||
{"auth_id_characteristics": auth_id_characteristics},
|
||||
configuration_update_params.ConfigurationUpdateParams,
|
||||
),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
||||
),
|
||||
cast_to=ConfigurationUpdateResponse,
|
||||
)
|
||||
|
||||
async def get(
|
||||
|
|
|
|||
|
|
@ -24,9 +24,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.api_gateway.discovery_get_response import DiscoveryGetResponse
|
||||
|
||||
__all__ = ["DiscoveryResource", "AsyncDiscoveryResource"]
|
||||
|
|
|
|||
|
|
@ -21,11 +21,8 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.api_gateway.discovery import operation_edit_params, operation_list_params
|
||||
from ....types.api_gateway.discovery_operation import DiscoveryOperation
|
||||
from ....types.api_gateway.discovery.operation_edit_response import OperationEditResponse
|
||||
|
|
@ -54,8 +51,8 @@ class OperationsResource(SyncAPIResource):
|
|||
order: Literal["host", "method", "endpoint", "traffic_stats.requests", "traffic_stats.last_updated"]
|
||||
| NotGiven = NOT_GIVEN,
|
||||
origin: Literal["ML", "SessionIdentifier"] | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: object | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
state: Literal["review", "saved", "ignored"] | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
|
|
@ -63,7 +60,7 @@ class OperationsResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> SyncSinglePage[DiscoveryOperation]:
|
||||
) -> SyncV4PagePaginationArray[DiscoveryOperation]:
|
||||
"""
|
||||
Retrieve the most up to date view of discovered operations
|
||||
|
||||
|
|
@ -115,7 +112,7 @@ class OperationsResource(SyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/discovery/operations",
|
||||
page=SyncSinglePage[DiscoveryOperation],
|
||||
page=SyncV4PagePaginationArray[DiscoveryOperation],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -159,7 +156,7 @@ class OperationsResource(SyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID identifier
|
||||
operation_id: UUID
|
||||
|
||||
state: Mark state of operation in API Discovery
|
||||
|
||||
|
|
@ -213,8 +210,8 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
order: Literal["host", "method", "endpoint", "traffic_stats.requests", "traffic_stats.last_updated"]
|
||||
| NotGiven = NOT_GIVEN,
|
||||
origin: Literal["ML", "SessionIdentifier"] | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: object | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
state: Literal["review", "saved", "ignored"] | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
|
|
@ -222,7 +219,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> AsyncPaginator[DiscoveryOperation, AsyncSinglePage[DiscoveryOperation]]:
|
||||
) -> AsyncPaginator[DiscoveryOperation, AsyncV4PagePaginationArray[DiscoveryOperation]]:
|
||||
"""
|
||||
Retrieve the most up to date view of discovered operations
|
||||
|
||||
|
|
@ -274,7 +271,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/discovery/operations",
|
||||
page=AsyncSinglePage[DiscoveryOperation],
|
||||
page=AsyncV4PagePaginationArray[DiscoveryOperation],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -318,7 +315,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID identifier
|
||||
operation_id: UUID
|
||||
|
||||
state: Mark state of operation in API Discovery
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, List, Type, Iterable, Optional, cast
|
||||
from typing import List, Type, Iterable, cast
|
||||
from typing_extensions import Literal
|
||||
|
||||
import httpx
|
||||
|
|
@ -21,11 +21,8 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from .schema_validation import (
|
||||
SchemaValidationResource,
|
||||
AsyncSchemaValidationResource,
|
||||
|
|
@ -35,7 +32,8 @@ from .schema_validation import (
|
|||
AsyncSchemaValidationResourceWithStreamingResponse,
|
||||
)
|
||||
from ....types.api_gateway import operation_get_params, operation_list_params, operation_create_params
|
||||
from ....types.api_gateway.api_shield import APIShield
|
||||
from ....types.api_gateway.operation_get_response import OperationGetResponse
|
||||
from ....types.api_gateway.operation_list_response import OperationListResponse
|
||||
from ....types.api_gateway.operation_create_response import OperationCreateResponse
|
||||
from ....types.api_gateway.operation_delete_response import OperationDeleteResponse
|
||||
|
||||
|
|
@ -66,7 +64,7 @@ class OperationsResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Optional[OperationCreateResponse]:
|
||||
) -> OperationCreateResponse:
|
||||
"""Add one or more operations to a zone.
|
||||
|
||||
Endpoints can contain path variables.
|
||||
|
|
@ -96,9 +94,9 @@ class OperationsResource(SyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Optional[OperationCreateResponse]]._unwrapper,
|
||||
post_parser=ResultWrapper[OperationCreateResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Optional[OperationCreateResponse]], ResultWrapper[OperationCreateResponse]),
|
||||
cast_to=cast(Type[OperationCreateResponse], ResultWrapper[OperationCreateResponse]),
|
||||
)
|
||||
|
||||
def list(
|
||||
|
|
@ -111,15 +109,15 @@ class OperationsResource(SyncAPIResource):
|
|||
host: List[str] | NotGiven = NOT_GIVEN,
|
||||
method: List[str] | NotGiven = NOT_GIVEN,
|
||||
order: Literal["method", "host", "endpoint", "thresholds.$key"] | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: float | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> SyncSinglePage[APIShield]:
|
||||
) -> SyncV4PagePaginationArray[OperationListResponse]:
|
||||
"""
|
||||
Retrieve information about all operations on a zone
|
||||
|
||||
|
|
@ -143,7 +141,7 @@ class OperationsResource(SyncAPIResource):
|
|||
|
||||
page: Page number of paginated results.
|
||||
|
||||
per_page: Number of results to return per page
|
||||
per_page: Maximum number of results per page.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
|
|
@ -157,7 +155,7 @@ class OperationsResource(SyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/operations",
|
||||
page=SyncSinglePage[APIShield],
|
||||
page=SyncV4PagePaginationArray[OperationListResponse],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -177,7 +175,7 @@ class OperationsResource(SyncAPIResource):
|
|||
operation_list_params.OperationListParams,
|
||||
),
|
||||
),
|
||||
model=APIShield,
|
||||
model=OperationListResponse,
|
||||
)
|
||||
|
||||
def delete(
|
||||
|
|
@ -198,6 +196,8 @@ class OperationsResource(SyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -210,21 +210,12 @@ class OperationsResource(SyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
if not operation_id:
|
||||
raise ValueError(f"Expected a non-empty value for `operation_id` but received {operation_id!r}")
|
||||
return cast(
|
||||
OperationDeleteResponse,
|
||||
self._delete(
|
||||
f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[OperationDeleteResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(
|
||||
Any, ResultWrapper[OperationDeleteResponse]
|
||||
), # Union types cannot be passed in as arguments in the type system
|
||||
return self._delete(
|
||||
f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
||||
),
|
||||
cast_to=OperationDeleteResponse,
|
||||
)
|
||||
|
||||
def get(
|
||||
|
|
@ -239,13 +230,15 @@ class OperationsResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> APIShield:
|
||||
) -> OperationGetResponse:
|
||||
"""
|
||||
Retrieve information about an operation
|
||||
|
||||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
feature: Add feature(s) to the results. The feature name that is given here corresponds
|
||||
to the resulting feature object. Have a look at the top-level object description
|
||||
for more details on the specific meaning.
|
||||
|
|
@ -270,9 +263,9 @@ class OperationsResource(SyncAPIResource):
|
|||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
query=maybe_transform({"feature": feature}, operation_get_params.OperationGetParams),
|
||||
post_parser=ResultWrapper[APIShield]._unwrapper,
|
||||
post_parser=ResultWrapper[OperationGetResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[APIShield], ResultWrapper[APIShield]),
|
||||
cast_to=cast(Type[OperationGetResponse], ResultWrapper[OperationGetResponse]),
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -300,7 +293,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Optional[OperationCreateResponse]:
|
||||
) -> OperationCreateResponse:
|
||||
"""Add one or more operations to a zone.
|
||||
|
||||
Endpoints can contain path variables.
|
||||
|
|
@ -330,9 +323,9 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Optional[OperationCreateResponse]]._unwrapper,
|
||||
post_parser=ResultWrapper[OperationCreateResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Optional[OperationCreateResponse]], ResultWrapper[OperationCreateResponse]),
|
||||
cast_to=cast(Type[OperationCreateResponse], ResultWrapper[OperationCreateResponse]),
|
||||
)
|
||||
|
||||
def list(
|
||||
|
|
@ -345,15 +338,15 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
host: List[str] | NotGiven = NOT_GIVEN,
|
||||
method: List[str] | NotGiven = NOT_GIVEN,
|
||||
order: Literal["method", "host", "endpoint", "thresholds.$key"] | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: float | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> AsyncPaginator[APIShield, AsyncSinglePage[APIShield]]:
|
||||
) -> AsyncPaginator[OperationListResponse, AsyncV4PagePaginationArray[OperationListResponse]]:
|
||||
"""
|
||||
Retrieve information about all operations on a zone
|
||||
|
||||
|
|
@ -377,7 +370,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
|
||||
page: Page number of paginated results.
|
||||
|
||||
per_page: Number of results to return per page
|
||||
per_page: Maximum number of results per page.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
|
|
@ -391,7 +384,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/operations",
|
||||
page=AsyncSinglePage[APIShield],
|
||||
page=AsyncV4PagePaginationArray[OperationListResponse],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -411,7 +404,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
operation_list_params.OperationListParams,
|
||||
),
|
||||
),
|
||||
model=APIShield,
|
||||
model=OperationListResponse,
|
||||
)
|
||||
|
||||
async def delete(
|
||||
|
|
@ -432,6 +425,8 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -444,21 +439,12 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
if not operation_id:
|
||||
raise ValueError(f"Expected a non-empty value for `operation_id` but received {operation_id!r}")
|
||||
return cast(
|
||||
OperationDeleteResponse,
|
||||
await self._delete(
|
||||
f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[OperationDeleteResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(
|
||||
Any, ResultWrapper[OperationDeleteResponse]
|
||||
), # Union types cannot be passed in as arguments in the type system
|
||||
return await self._delete(
|
||||
f"/zones/{zone_id}/api_gateway/operations/{operation_id}",
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
||||
),
|
||||
cast_to=OperationDeleteResponse,
|
||||
)
|
||||
|
||||
async def get(
|
||||
|
|
@ -473,13 +459,15 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> APIShield:
|
||||
) -> OperationGetResponse:
|
||||
"""
|
||||
Retrieve information about an operation
|
||||
|
||||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
feature: Add feature(s) to the results. The feature name that is given here corresponds
|
||||
to the resulting feature object. Have a look at the top-level object description
|
||||
for more details on the specific meaning.
|
||||
|
|
@ -504,9 +492,9 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
query=await async_maybe_transform({"feature": feature}, operation_get_params.OperationGetParams),
|
||||
post_parser=ResultWrapper[APIShield]._unwrapper,
|
||||
post_parser=ResultWrapper[OperationGetResponse]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[APIShield], ResultWrapper[APIShield]),
|
||||
cast_to=cast(Type[OperationGetResponse], ResultWrapper[OperationGetResponse]),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.api_gateway.operations import (
|
||||
SettingsMultipleRequest,
|
||||
schema_validation_edit_params,
|
||||
|
|
@ -65,6 +63,8 @@ class SchemaValidationResource(SyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
mitigation_action: When set, this applies a mitigation action to this operation
|
||||
|
||||
- `log` log request when request does not conform to schema for this operation
|
||||
|
|
@ -156,6 +156,8 @@ class SchemaValidationResource(SyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -205,6 +207,8 @@ class AsyncSchemaValidationResource(AsyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
mitigation_action: When set, this applies a mitigation action to this operation
|
||||
|
||||
- `log` log request when request does not conform to schema for this operation
|
||||
|
|
@ -298,6 +302,8 @@ class AsyncSchemaValidationResource(AsyncAPIResource):
|
|||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
operation_id: UUID
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.api_gateway import schema_list_params
|
||||
from ...types.api_gateway.schema_list_response import SchemaListResponse
|
||||
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ...._response import (
|
|||
async_to_raw_response_wrapper,
|
||||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.api_gateway.settings import schema_validation_edit_params, schema_validation_update_params
|
||||
from ....types.api_gateway.settings.settings import Settings
|
||||
|
||||
|
|
|
|||
|
|
@ -17,11 +17,8 @@ from ...._response import (
|
|||
async_to_raw_response_wrapper,
|
||||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.api_gateway.user_schemas import operation_list_params
|
||||
from ....types.api_gateway.user_schemas.operation_list_response import OperationListResponse
|
||||
|
||||
|
|
@ -47,15 +44,15 @@ class OperationsResource(SyncAPIResource):
|
|||
host: List[str] | NotGiven = NOT_GIVEN,
|
||||
method: List[str] | NotGiven = NOT_GIVEN,
|
||||
operation_status: Literal["new", "existing"] | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: object | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> SyncSinglePage[OperationListResponse]:
|
||||
) -> SyncV4PagePaginationArray[OperationListResponse]:
|
||||
"""Retrieves all operations from the schema.
|
||||
|
||||
Operations that already exist in API
|
||||
|
|
@ -97,7 +94,7 @@ class OperationsResource(SyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}/operations",
|
||||
page=SyncSinglePage[OperationListResponse],
|
||||
page=SyncV4PagePaginationArray[OperationListResponse],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -139,15 +136,15 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
host: List[str] | NotGiven = NOT_GIVEN,
|
||||
method: List[str] | NotGiven = NOT_GIVEN,
|
||||
operation_status: Literal["new", "existing"] | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: object | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> AsyncPaginator[OperationListResponse, AsyncSinglePage[OperationListResponse]]:
|
||||
) -> AsyncPaginator[OperationListResponse, AsyncV4PagePaginationArray[OperationListResponse]]:
|
||||
"""Retrieves all operations from the schema.
|
||||
|
||||
Operations that already exist in API
|
||||
|
|
@ -189,7 +186,7 @@ class AsyncOperationsResource(AsyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}/operations",
|
||||
page=AsyncSinglePage[OperationListResponse],
|
||||
page=AsyncV4PagePaginationArray[OperationListResponse],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Type, Mapping, cast
|
||||
from typing import Any, Type, Mapping, Optional, cast
|
||||
from typing_extensions import Literal
|
||||
|
||||
import httpx
|
||||
|
|
@ -31,11 +31,8 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.api_gateway import (
|
||||
user_schema_get_params,
|
||||
user_schema_edit_params,
|
||||
|
|
@ -110,11 +107,10 @@ class UserSchemasResource(SyncAPIResource):
|
|||
}
|
||||
)
|
||||
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
||||
if files:
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
return self._post(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas",
|
||||
body=maybe_transform(body, user_schema_create_params.UserSchemaCreateParams),
|
||||
|
|
@ -134,8 +130,8 @@ class UserSchemasResource(SyncAPIResource):
|
|||
*,
|
||||
zone_id: str,
|
||||
omit_source: bool | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: object | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
validation_enabled: bool | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
|
|
@ -143,7 +139,7 @@ class UserSchemasResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> SyncSinglePage[PublicSchema]:
|
||||
) -> SyncV4PagePaginationArray[PublicSchema]:
|
||||
"""
|
||||
Retrieve information about all schemas on a zone
|
||||
|
||||
|
|
@ -170,7 +166,7 @@ class UserSchemasResource(SyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas",
|
||||
page=SyncSinglePage[PublicSchema],
|
||||
page=SyncV4PagePaginationArray[PublicSchema],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -200,7 +196,7 @@ class UserSchemasResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> UserSchemaDeleteResponse:
|
||||
) -> Optional[UserSchemaDeleteResponse]:
|
||||
"""
|
||||
Delete a schema
|
||||
|
||||
|
|
@ -220,7 +216,7 @@ class UserSchemasResource(SyncAPIResource):
|
|||
if not schema_id:
|
||||
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
|
||||
return cast(
|
||||
UserSchemaDeleteResponse,
|
||||
Optional[UserSchemaDeleteResponse],
|
||||
self._delete(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}",
|
||||
options=make_request_options(
|
||||
|
|
@ -228,7 +224,7 @@ class UserSchemasResource(SyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[UserSchemaDeleteResponse]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[UserSchemaDeleteResponse]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(
|
||||
Any, ResultWrapper[UserSchemaDeleteResponse]
|
||||
|
|
@ -392,11 +388,10 @@ class AsyncUserSchemasResource(AsyncAPIResource):
|
|||
}
|
||||
)
|
||||
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
|
||||
if files:
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
return await self._post(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas",
|
||||
body=await async_maybe_transform(body, user_schema_create_params.UserSchemaCreateParams),
|
||||
|
|
@ -416,8 +411,8 @@ class AsyncUserSchemasResource(AsyncAPIResource):
|
|||
*,
|
||||
zone_id: str,
|
||||
omit_source: bool | NotGiven = NOT_GIVEN,
|
||||
page: object | NotGiven = NOT_GIVEN,
|
||||
per_page: object | NotGiven = NOT_GIVEN,
|
||||
page: int | NotGiven = NOT_GIVEN,
|
||||
per_page: int | NotGiven = NOT_GIVEN,
|
||||
validation_enabled: bool | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
|
|
@ -425,7 +420,7 @@ class AsyncUserSchemasResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> AsyncPaginator[PublicSchema, AsyncSinglePage[PublicSchema]]:
|
||||
) -> AsyncPaginator[PublicSchema, AsyncV4PagePaginationArray[PublicSchema]]:
|
||||
"""
|
||||
Retrieve information about all schemas on a zone
|
||||
|
||||
|
|
@ -452,7 +447,7 @@ class AsyncUserSchemasResource(AsyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas",
|
||||
page=AsyncSinglePage[PublicSchema],
|
||||
page=AsyncV4PagePaginationArray[PublicSchema],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -482,7 +477,7 @@ class AsyncUserSchemasResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> UserSchemaDeleteResponse:
|
||||
) -> Optional[UserSchemaDeleteResponse]:
|
||||
"""
|
||||
Delete a schema
|
||||
|
||||
|
|
@ -502,7 +497,7 @@ class AsyncUserSchemasResource(AsyncAPIResource):
|
|||
if not schema_id:
|
||||
raise ValueError(f"Expected a non-empty value for `schema_id` but received {schema_id!r}")
|
||||
return cast(
|
||||
UserSchemaDeleteResponse,
|
||||
Optional[UserSchemaDeleteResponse],
|
||||
await self._delete(
|
||||
f"/zones/{zone_id}/api_gateway/user_schemas/{schema_id}",
|
||||
options=make_request_options(
|
||||
|
|
@ -510,7 +505,7 @@ class AsyncUserSchemasResource(AsyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[UserSchemaDeleteResponse]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[UserSchemaDeleteResponse]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(
|
||||
Any, ResultWrapper[UserSchemaDeleteResponse]
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.argo import smart_routing_edit_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.argo.smart_routing_get_response import SmartRoutingGetResponse
|
||||
from ...types.argo.smart_routing_edit_response import SmartRoutingEditResponse
|
||||
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.argo import tiered_caching_edit_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.argo.tiered_caching_get_response import TieredCachingGetResponse
|
||||
from ...types.argo.tiered_caching_edit_response import TieredCachingEditResponse
|
||||
|
||||
|
|
|
|||
|
|
@ -19,10 +19,7 @@ from .._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from .._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from .._base_client import AsyncPaginator, make_request_options
|
||||
from ..types.audit_logs import audit_log_list_params
|
||||
from ..types.shared.audit_log import AuditLog
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.billing.profile_get_response import ProfileGetResponse
|
||||
|
||||
__all__ = ["ProfilesResource", "AsyncProfilesResource"]
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ from .._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from .._wrappers import ResultWrapper
|
||||
from .._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from .._base_client import make_request_options
|
||||
from ..types.bot_management import bot_management_update_params
|
||||
from ..types.bot_management.bot_management_get_response import BotManagementGetResponse
|
||||
from ..types.bot_management.bot_management_update_response import BotManagementUpdateResponse
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from .._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from .._wrappers import ResultWrapper
|
||||
from .._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from .._base_client import make_request_options
|
||||
from ..types.brand_protection import brand_protection_submit_params, brand_protection_url_info_params
|
||||
from ..types.brand_protection.info import Info
|
||||
from ..types.brand_protection.submit import Submit
|
||||
|
|
|
|||
4
src/cloudflare/resources/cache/cache.py
vendored
4
src/cloudflare/resources/cache/cache.py
vendored
|
|
@ -38,9 +38,7 @@ from .cache_reserve import (
|
|||
CacheReserveResourceWithStreamingResponse,
|
||||
AsyncCacheReserveResourceWithStreamingResponse,
|
||||
)
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from .smart_tiered_cache import (
|
||||
SmartTieredCacheResource,
|
||||
AsyncSmartTieredCacheResource,
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.cache import cache_reserve_edit_params, cache_reserve_clear_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.cache.cache_reserve_get_response import CacheReserveGetResponse
|
||||
from ...types.cache.cache_reserve_edit_response import CacheReserveEditResponse
|
||||
from ...types.cache.cache_reserve_clear_response import CacheReserveClearResponse
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.cache import regional_tiered_cache_edit_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.cache.regional_tiered_cache_get_response import RegionalTieredCacheGetResponse
|
||||
from ...types.cache.regional_tiered_cache_edit_response import RegionalTieredCacheEditResponse
|
||||
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.cache import smart_tiered_cache_edit_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.cache.smart_tiered_cache_get_response import SmartTieredCacheGetResponse
|
||||
from ...types.cache.smart_tiered_cache_edit_response import SmartTieredCacheEditResponse
|
||||
from ...types.cache.smart_tiered_cache_delete_response import SmartTieredCacheDeleteResponse
|
||||
|
|
|
|||
4
src/cloudflare/resources/cache/variants.py
vendored
4
src/cloudflare/resources/cache/variants.py
vendored
|
|
@ -21,9 +21,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.cache import variant_edit_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.cache.cache_variant import CacheVariant
|
||||
from ...types.cache.variant_get_response import VariantGetResponse
|
||||
from ...types.cache.variant_edit_response import VariantEditResponse
|
||||
|
|
|
|||
|
|
@ -31,10 +31,7 @@ from ..._response import (
|
|||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...types.calls import call_create_params, call_update_params
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.calls.calls_app import CallsApp
|
||||
from ...types.calls.call_list_response import CallListResponse
|
||||
from ...types.calls.calls_app_with_secret import CallsAppWithSecret
|
||||
|
|
|
|||
|
|
@ -21,10 +21,7 @@ from ...._response import (
|
|||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.calls.turn import key_create_params, key_update_params
|
||||
from ....types.calls.turn.key_get_response import KeyGetResponse
|
||||
from ....types.calls.turn.key_list_response import KeyListResponse
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.certificate_authorities import hostname_association_get_params, hostname_association_update_params
|
||||
from ...types.certificate_authorities.hostname_association import HostnameAssociation
|
||||
from ...types.certificate_authorities.hostname_association_get_response import HostnameAssociationGetResponse
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.challenges import (
|
||||
widget_list_params,
|
||||
widget_create_params,
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ from .._response import (
|
|||
)
|
||||
from .._wrappers import ResultWrapper
|
||||
from ..pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from .._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from .._base_client import AsyncPaginator, make_request_options
|
||||
from ..types.client_certificates import client_certificate_list_params, client_certificate_create_params
|
||||
from ..types.client_certificates.client_certificate import ClientCertificate
|
||||
|
||||
|
|
|
|||
33
src/cloudflare/resources/cloud_connector/__init__.py
Normal file
33
src/cloudflare/resources/cloud_connector/__init__.py
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from .rules import (
|
||||
RulesResource,
|
||||
AsyncRulesResource,
|
||||
RulesResourceWithRawResponse,
|
||||
AsyncRulesResourceWithRawResponse,
|
||||
RulesResourceWithStreamingResponse,
|
||||
AsyncRulesResourceWithStreamingResponse,
|
||||
)
|
||||
from .cloud_connector import (
|
||||
CloudConnectorResource,
|
||||
AsyncCloudConnectorResource,
|
||||
CloudConnectorResourceWithRawResponse,
|
||||
AsyncCloudConnectorResourceWithRawResponse,
|
||||
CloudConnectorResourceWithStreamingResponse,
|
||||
AsyncCloudConnectorResourceWithStreamingResponse,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"RulesResource",
|
||||
"AsyncRulesResource",
|
||||
"RulesResourceWithRawResponse",
|
||||
"AsyncRulesResourceWithRawResponse",
|
||||
"RulesResourceWithStreamingResponse",
|
||||
"AsyncRulesResourceWithStreamingResponse",
|
||||
"CloudConnectorResource",
|
||||
"AsyncCloudConnectorResource",
|
||||
"CloudConnectorResourceWithRawResponse",
|
||||
"AsyncCloudConnectorResourceWithRawResponse",
|
||||
"CloudConnectorResourceWithStreamingResponse",
|
||||
"AsyncCloudConnectorResourceWithStreamingResponse",
|
||||
]
|
||||
80
src/cloudflare/resources/cloud_connector/cloud_connector.py
Normal file
80
src/cloudflare/resources/cloud_connector/cloud_connector.py
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from .rules import (
|
||||
RulesResource,
|
||||
AsyncRulesResource,
|
||||
RulesResourceWithRawResponse,
|
||||
AsyncRulesResourceWithRawResponse,
|
||||
RulesResourceWithStreamingResponse,
|
||||
AsyncRulesResourceWithStreamingResponse,
|
||||
)
|
||||
from ..._compat import cached_property
|
||||
from ..._resource import SyncAPIResource, AsyncAPIResource
|
||||
|
||||
__all__ = ["CloudConnectorResource", "AsyncCloudConnectorResource"]
|
||||
|
||||
|
||||
class CloudConnectorResource(SyncAPIResource):
|
||||
@cached_property
|
||||
def rules(self) -> RulesResource:
|
||||
return RulesResource(self._client)
|
||||
|
||||
@cached_property
|
||||
def with_raw_response(self) -> CloudConnectorResourceWithRawResponse:
|
||||
return CloudConnectorResourceWithRawResponse(self)
|
||||
|
||||
@cached_property
|
||||
def with_streaming_response(self) -> CloudConnectorResourceWithStreamingResponse:
|
||||
return CloudConnectorResourceWithStreamingResponse(self)
|
||||
|
||||
|
||||
class AsyncCloudConnectorResource(AsyncAPIResource):
|
||||
@cached_property
|
||||
def rules(self) -> AsyncRulesResource:
|
||||
return AsyncRulesResource(self._client)
|
||||
|
||||
@cached_property
|
||||
def with_raw_response(self) -> AsyncCloudConnectorResourceWithRawResponse:
|
||||
return AsyncCloudConnectorResourceWithRawResponse(self)
|
||||
|
||||
@cached_property
|
||||
def with_streaming_response(self) -> AsyncCloudConnectorResourceWithStreamingResponse:
|
||||
return AsyncCloudConnectorResourceWithStreamingResponse(self)
|
||||
|
||||
|
||||
class CloudConnectorResourceWithRawResponse:
|
||||
def __init__(self, cloud_connector: CloudConnectorResource) -> None:
|
||||
self._cloud_connector = cloud_connector
|
||||
|
||||
@cached_property
|
||||
def rules(self) -> RulesResourceWithRawResponse:
|
||||
return RulesResourceWithRawResponse(self._cloud_connector.rules)
|
||||
|
||||
|
||||
class AsyncCloudConnectorResourceWithRawResponse:
|
||||
def __init__(self, cloud_connector: AsyncCloudConnectorResource) -> None:
|
||||
self._cloud_connector = cloud_connector
|
||||
|
||||
@cached_property
|
||||
def rules(self) -> AsyncRulesResourceWithRawResponse:
|
||||
return AsyncRulesResourceWithRawResponse(self._cloud_connector.rules)
|
||||
|
||||
|
||||
class CloudConnectorResourceWithStreamingResponse:
|
||||
def __init__(self, cloud_connector: CloudConnectorResource) -> None:
|
||||
self._cloud_connector = cloud_connector
|
||||
|
||||
@cached_property
|
||||
def rules(self) -> RulesResourceWithStreamingResponse:
|
||||
return RulesResourceWithStreamingResponse(self._cloud_connector.rules)
|
||||
|
||||
|
||||
class AsyncCloudConnectorResourceWithStreamingResponse:
|
||||
def __init__(self, cloud_connector: AsyncCloudConnectorResource) -> None:
|
||||
self._cloud_connector = cloud_connector
|
||||
|
||||
@cached_property
|
||||
def rules(self) -> AsyncRulesResourceWithStreamingResponse:
|
||||
return AsyncRulesResourceWithStreamingResponse(self._cloud_connector.rules)
|
||||
|
|
@ -2,62 +2,61 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Type, Optional, cast
|
||||
from typing_extensions import Literal
|
||||
from typing import Type, Iterable, Optional, cast
|
||||
|
||||
import httpx
|
||||
|
||||
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
||||
from ...._utils import (
|
||||
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
||||
from ..._utils import (
|
||||
maybe_transform,
|
||||
async_maybe_transform,
|
||||
)
|
||||
from ...._compat import cached_property
|
||||
from ...._resource import SyncAPIResource, AsyncAPIResource
|
||||
from ...._response import (
|
||||
from ..._compat import cached_property
|
||||
from ..._resource import SyncAPIResource, AsyncAPIResource
|
||||
from ..._response import (
|
||||
to_raw_response_wrapper,
|
||||
to_streamed_response_wrapper,
|
||||
async_to_raw_response_wrapper,
|
||||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ....types.zones.settings import http2_edit_params
|
||||
from ....types.zones.settings.http2 import HTTP2
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.cloud_connector import rule_update_params
|
||||
from ...types.cloud_connector.rule_list_response import RuleListResponse
|
||||
from ...types.cloud_connector.rule_update_response import RuleUpdateResponse
|
||||
|
||||
__all__ = ["HTTP2Resource", "AsyncHTTP2Resource"]
|
||||
__all__ = ["RulesResource", "AsyncRulesResource"]
|
||||
|
||||
|
||||
class HTTP2Resource(SyncAPIResource):
|
||||
class RulesResource(SyncAPIResource):
|
||||
@cached_property
|
||||
def with_raw_response(self) -> HTTP2ResourceWithRawResponse:
|
||||
return HTTP2ResourceWithRawResponse(self)
|
||||
def with_raw_response(self) -> RulesResourceWithRawResponse:
|
||||
return RulesResourceWithRawResponse(self)
|
||||
|
||||
@cached_property
|
||||
def with_streaming_response(self) -> HTTP2ResourceWithStreamingResponse:
|
||||
return HTTP2ResourceWithStreamingResponse(self)
|
||||
def with_streaming_response(self) -> RulesResourceWithStreamingResponse:
|
||||
return RulesResourceWithStreamingResponse(self)
|
||||
|
||||
def edit(
|
||||
def update(
|
||||
self,
|
||||
*,
|
||||
zone_id: str,
|
||||
value: Literal["on", "off"],
|
||||
body: Iterable[rule_update_params.Body],
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Optional[HTTP2]:
|
||||
) -> Optional[RuleUpdateResponse]:
|
||||
"""
|
||||
Value of the HTTP2 setting.
|
||||
Put Rules
|
||||
|
||||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
value: Value of the HTTP2 setting.
|
||||
body: List of Cloud Connector rules
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
|
|
@ -69,20 +68,20 @@ class HTTP2Resource(SyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._patch(
|
||||
f"/zones/{zone_id}/settings/http2",
|
||||
body=maybe_transform({"value": value}, http2_edit_params.HTTP2EditParams),
|
||||
return self._put(
|
||||
f"/zones/{zone_id}/cloud_connector/rules",
|
||||
body=maybe_transform(body, rule_update_params.RuleUpdateParams),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[RuleUpdateResponse]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
|
||||
cast_to=cast(Type[Optional[RuleUpdateResponse]], ResultWrapper[RuleUpdateResponse]),
|
||||
)
|
||||
|
||||
def get(
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
zone_id: str,
|
||||
|
|
@ -92,9 +91,9 @@ class HTTP2Resource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Optional[HTTP2]:
|
||||
) -> SyncSinglePage[RuleListResponse]:
|
||||
"""
|
||||
Value of the HTTP2 setting.
|
||||
Rules
|
||||
|
||||
Args:
|
||||
zone_id: Identifier
|
||||
|
|
@ -109,47 +108,44 @@ class HTTP2Resource(SyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return self._get(
|
||||
f"/zones/{zone_id}/settings/http2",
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/cloud_connector/rules",
|
||||
page=SyncSinglePage[RuleListResponse],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
|
||||
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
||||
),
|
||||
cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
|
||||
model=RuleListResponse,
|
||||
)
|
||||
|
||||
|
||||
class AsyncHTTP2Resource(AsyncAPIResource):
|
||||
class AsyncRulesResource(AsyncAPIResource):
|
||||
@cached_property
|
||||
def with_raw_response(self) -> AsyncHTTP2ResourceWithRawResponse:
|
||||
return AsyncHTTP2ResourceWithRawResponse(self)
|
||||
def with_raw_response(self) -> AsyncRulesResourceWithRawResponse:
|
||||
return AsyncRulesResourceWithRawResponse(self)
|
||||
|
||||
@cached_property
|
||||
def with_streaming_response(self) -> AsyncHTTP2ResourceWithStreamingResponse:
|
||||
return AsyncHTTP2ResourceWithStreamingResponse(self)
|
||||
def with_streaming_response(self) -> AsyncRulesResourceWithStreamingResponse:
|
||||
return AsyncRulesResourceWithStreamingResponse(self)
|
||||
|
||||
async def edit(
|
||||
async def update(
|
||||
self,
|
||||
*,
|
||||
zone_id: str,
|
||||
value: Literal["on", "off"],
|
||||
body: Iterable[rule_update_params.Body],
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Optional[HTTP2]:
|
||||
) -> Optional[RuleUpdateResponse]:
|
||||
"""
|
||||
Value of the HTTP2 setting.
|
||||
Put Rules
|
||||
|
||||
Args:
|
||||
zone_id: Identifier
|
||||
|
||||
value: Value of the HTTP2 setting.
|
||||
body: List of Cloud Connector rules
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
|
|
@ -161,20 +157,20 @@ class AsyncHTTP2Resource(AsyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return await self._patch(
|
||||
f"/zones/{zone_id}/settings/http2",
|
||||
body=await async_maybe_transform({"value": value}, http2_edit_params.HTTP2EditParams),
|
||||
return await self._put(
|
||||
f"/zones/{zone_id}/cloud_connector/rules",
|
||||
body=await async_maybe_transform(body, rule_update_params.RuleUpdateParams),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[RuleUpdateResponse]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
|
||||
cast_to=cast(Type[Optional[RuleUpdateResponse]], ResultWrapper[RuleUpdateResponse]),
|
||||
)
|
||||
|
||||
async def get(
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
zone_id: str,
|
||||
|
|
@ -184,9 +180,9 @@ class AsyncHTTP2Resource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Optional[HTTP2]:
|
||||
) -> AsyncPaginator[RuleListResponse, AsyncSinglePage[RuleListResponse]]:
|
||||
"""
|
||||
Value of the HTTP2 setting.
|
||||
Rules
|
||||
|
||||
Args:
|
||||
zone_id: Identifier
|
||||
|
|
@ -201,62 +197,59 @@ class AsyncHTTP2Resource(AsyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
return await self._get(
|
||||
f"/zones/{zone_id}/settings/http2",
|
||||
return self._get_api_list(
|
||||
f"/zones/{zone_id}/cloud_connector/rules",
|
||||
page=AsyncSinglePage[RuleListResponse],
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Optional[HTTP2]]._unwrapper,
|
||||
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
||||
),
|
||||
cast_to=cast(Type[Optional[HTTP2]], ResultWrapper[HTTP2]),
|
||||
model=RuleListResponse,
|
||||
)
|
||||
|
||||
|
||||
class HTTP2ResourceWithRawResponse:
|
||||
def __init__(self, http2: HTTP2Resource) -> None:
|
||||
self._http2 = http2
|
||||
class RulesResourceWithRawResponse:
|
||||
def __init__(self, rules: RulesResource) -> None:
|
||||
self._rules = rules
|
||||
|
||||
self.edit = to_raw_response_wrapper(
|
||||
http2.edit,
|
||||
self.update = to_raw_response_wrapper(
|
||||
rules.update,
|
||||
)
|
||||
self.get = to_raw_response_wrapper(
|
||||
http2.get,
|
||||
self.list = to_raw_response_wrapper(
|
||||
rules.list,
|
||||
)
|
||||
|
||||
|
||||
class AsyncHTTP2ResourceWithRawResponse:
|
||||
def __init__(self, http2: AsyncHTTP2Resource) -> None:
|
||||
self._http2 = http2
|
||||
class AsyncRulesResourceWithRawResponse:
|
||||
def __init__(self, rules: AsyncRulesResource) -> None:
|
||||
self._rules = rules
|
||||
|
||||
self.edit = async_to_raw_response_wrapper(
|
||||
http2.edit,
|
||||
self.update = async_to_raw_response_wrapper(
|
||||
rules.update,
|
||||
)
|
||||
self.get = async_to_raw_response_wrapper(
|
||||
http2.get,
|
||||
self.list = async_to_raw_response_wrapper(
|
||||
rules.list,
|
||||
)
|
||||
|
||||
|
||||
class HTTP2ResourceWithStreamingResponse:
|
||||
def __init__(self, http2: HTTP2Resource) -> None:
|
||||
self._http2 = http2
|
||||
class RulesResourceWithStreamingResponse:
|
||||
def __init__(self, rules: RulesResource) -> None:
|
||||
self._rules = rules
|
||||
|
||||
self.edit = to_streamed_response_wrapper(
|
||||
http2.edit,
|
||||
self.update = to_streamed_response_wrapper(
|
||||
rules.update,
|
||||
)
|
||||
self.get = to_streamed_response_wrapper(
|
||||
http2.get,
|
||||
self.list = to_streamed_response_wrapper(
|
||||
rules.list,
|
||||
)
|
||||
|
||||
|
||||
class AsyncHTTP2ResourceWithStreamingResponse:
|
||||
def __init__(self, http2: AsyncHTTP2Resource) -> None:
|
||||
self._http2 = http2
|
||||
class AsyncRulesResourceWithStreamingResponse:
|
||||
def __init__(self, rules: AsyncRulesResource) -> None:
|
||||
self._rules = rules
|
||||
|
||||
self.edit = async_to_streamed_response_wrapper(
|
||||
http2.edit,
|
||||
self.update = async_to_streamed_response_wrapper(
|
||||
rules.update,
|
||||
)
|
||||
self.get = async_to_streamed_response_wrapper(
|
||||
http2.get,
|
||||
self.list = async_to_streamed_response_wrapper(
|
||||
rules.list,
|
||||
)
|
||||
|
|
@ -22,9 +22,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.cloudforce_one.requests import message_get_params, message_create_params, message_update_params
|
||||
from ....types.cloudforce_one.requests.message import Message
|
||||
from ....types.cloudforce_one.requests.message_get_response import MessageGetResponse
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.cloudforce_one.item import Item
|
||||
from ....types.cloudforce_one.quota import Quota
|
||||
from ....types.cloudforce_one.requests import priority_create_params, priority_update_params
|
||||
|
|
|
|||
|
|
@ -39,10 +39,7 @@ from ...._response import (
|
|||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.cloudforce_one import request_list_params, request_create_params, request_update_params
|
||||
from ....types.cloudforce_one.item import Item
|
||||
from ....types.cloudforce_one.quota import Quota
|
||||
|
|
|
|||
|
|
@ -30,10 +30,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.custom_hostnames import BundleMethod
|
||||
from ...types.custom_certificates import (
|
||||
custom_certificate_edit_params,
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.custom_certificates import prioritize_update_params
|
||||
from ...types.custom_certificates.prioritize_update_response import PrioritizeUpdateResponse
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from .fallback_origin import (
|
||||
FallbackOriginResource,
|
||||
AsyncFallbackOriginResource,
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.custom_hostnames import fallback_origin_update_params
|
||||
from ...types.custom_hostnames.fallback_origin_get_response import FallbackOriginGetResponse
|
||||
from ...types.custom_hostnames.fallback_origin_delete_response import FallbackOriginDeleteResponse
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from .._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from .._wrappers import ResultWrapper
|
||||
from .._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from .._base_client import make_request_options
|
||||
from ..types.custom_nameservers import custom_nameserver_create_params
|
||||
from ..types.custom_nameservers.custom_nameserver import CustomNameserver
|
||||
from ..types.custom_nameservers.custom_nameserver_get_response import CustomNameserverGetResponse
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from typing import Any, List, Type, cast
|
||||
from typing_extensions import Literal
|
||||
|
||||
import httpx
|
||||
|
||||
|
|
@ -23,10 +24,7 @@ from ..._response import (
|
|||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ...types.d1.d1 import D1
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.d1.database_raw_response import DatabaseRawResponse
|
||||
from ...types.d1.database_list_response import DatabaseListResponse
|
||||
from ...types.d1.database_query_response import DatabaseQueryResponse
|
||||
|
|
@ -50,6 +48,7 @@ class DatabaseResource(SyncAPIResource):
|
|||
*,
|
||||
account_id: str,
|
||||
name: str,
|
||||
primary_location_hint: Literal["wnam", "enam", "weur", "eeur", "apac", "oc"] | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -63,6 +62,9 @@ class DatabaseResource(SyncAPIResource):
|
|||
Args:
|
||||
account_id: Account identifier tag.
|
||||
|
||||
primary_location_hint: Specify the region to create the D1 primary, if available. If this option is
|
||||
omitted, the D1 will be created as close as possible to the current user.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -75,7 +77,13 @@ class DatabaseResource(SyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
|
||||
return self._post(
|
||||
f"/accounts/{account_id}/d1/database",
|
||||
body=maybe_transform({"name": name}, database_create_params.DatabaseCreateParams),
|
||||
body=maybe_transform(
|
||||
{
|
||||
"name": name,
|
||||
"primary_location_hint": primary_location_hint,
|
||||
},
|
||||
database_create_params.DatabaseCreateParams,
|
||||
),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -251,6 +259,9 @@ class DatabaseResource(SyncAPIResource):
|
|||
Args:
|
||||
account_id: Account identifier tag.
|
||||
|
||||
sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
|
||||
be executed as a batch.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -304,6 +315,9 @@ class DatabaseResource(SyncAPIResource):
|
|||
Args:
|
||||
account_id: Account identifier tag.
|
||||
|
||||
sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
|
||||
be executed as a batch.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -350,6 +364,7 @@ class AsyncDatabaseResource(AsyncAPIResource):
|
|||
*,
|
||||
account_id: str,
|
||||
name: str,
|
||||
primary_location_hint: Literal["wnam", "enam", "weur", "eeur", "apac", "oc"] | NotGiven = NOT_GIVEN,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
|
|
@ -363,6 +378,9 @@ class AsyncDatabaseResource(AsyncAPIResource):
|
|||
Args:
|
||||
account_id: Account identifier tag.
|
||||
|
||||
primary_location_hint: Specify the region to create the D1 primary, if available. If this option is
|
||||
omitted, the D1 will be created as close as possible to the current user.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -375,7 +393,13 @@ class AsyncDatabaseResource(AsyncAPIResource):
|
|||
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
|
||||
return await self._post(
|
||||
f"/accounts/{account_id}/d1/database",
|
||||
body=await async_maybe_transform({"name": name}, database_create_params.DatabaseCreateParams),
|
||||
body=await async_maybe_transform(
|
||||
{
|
||||
"name": name,
|
||||
"primary_location_hint": primary_location_hint,
|
||||
},
|
||||
database_create_params.DatabaseCreateParams,
|
||||
),
|
||||
options=make_request_options(
|
||||
extra_headers=extra_headers,
|
||||
extra_query=extra_query,
|
||||
|
|
@ -551,6 +575,9 @@ class AsyncDatabaseResource(AsyncAPIResource):
|
|||
Args:
|
||||
account_id: Account identifier tag.
|
||||
|
||||
sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
|
||||
be executed as a batch.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
@ -604,6 +631,9 @@ class AsyncDatabaseResource(AsyncAPIResource):
|
|||
Args:
|
||||
account_id: Account identifier tag.
|
||||
|
||||
sql: Your SQL query. Supports multiple statements, joined by semicolons, which will
|
||||
be executed as a batch.
|
||||
|
||||
extra_headers: Send extra headers
|
||||
|
||||
extra_query: Add additional query parameters to the request
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ from .._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from .._wrappers import ResultWrapper
|
||||
from .._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from .._base_client import make_request_options
|
||||
from ..types.dcv_delegation.dcv_delegation_uuid import DCVDelegationUUID
|
||||
|
||||
__all__ = ["DCVDelegationResource", "AsyncDCVDelegationResource"]
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.diagnostics import traceroute_create_params
|
||||
from ...types.diagnostics.traceroute_create_response import TracerouteCreateResponse
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ....._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ....._wrappers import ResultWrapper
|
||||
from ....._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ....._base_client import make_request_options
|
||||
from .....types.dns.firewall import Delta
|
||||
from .....types.dns.firewall.delta import Delta
|
||||
from .....types.dns.analytics.reports import bytime_get_params
|
||||
|
|
|
|||
|
|
@ -29,9 +29,7 @@ from ....._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ....._wrappers import ResultWrapper
|
||||
from ....._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ....._base_client import make_request_options
|
||||
from .....types.dns.analytics import report_get_params
|
||||
from .....types.dns.analytics.report import Report
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ......_response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ......_wrappers import ResultWrapper
|
||||
from ......_base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ......_base_client import make_request_options
|
||||
from ......types.dns.firewall import Delta
|
||||
from ......types.dns.firewall.delta import Delta
|
||||
from ......types.dns.analytics.reports.by_time import ByTime
|
||||
|
|
|
|||
|
|
@ -29,9 +29,7 @@ from ......_response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ......_wrappers import ResultWrapper
|
||||
from ......_base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ......_base_client import make_request_options
|
||||
from ......types.dns.analytics.report import Report
|
||||
from ......types.dns.firewall.analytics import report_get_params
|
||||
|
||||
|
|
|
|||
|
|
@ -30,10 +30,7 @@ from ...._response import (
|
|||
from ...._wrappers import ResultWrapper
|
||||
from ....types.dns import firewall_edit_params, firewall_list_params, firewall_create_params
|
||||
from ....pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from .analytics.analytics import AnalyticsResource, AsyncAnalyticsResource
|
||||
from ....types.dns.firewall.firewall import Firewall
|
||||
from ....types.dns.firewall_ips_param import FirewallIPsParam
|
||||
|
|
@ -77,7 +74,7 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Firewall:
|
||||
) -> Optional[Firewall]:
|
||||
"""
|
||||
Create a configured DNS Firewall Cluster.
|
||||
|
||||
|
|
@ -92,11 +89,16 @@ class FirewallResource(SyncAPIResource):
|
|||
|
||||
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
|
||||
|
||||
maximum_cache_ttl: Maximum DNS Cache TTL.
|
||||
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
|
||||
decreased to the maximum defined here for caching purposes.
|
||||
|
||||
minimum_cache_ttl: Minimum DNS Cache TTL.
|
||||
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
|
||||
increased to the minimum defined here for caching purposes.
|
||||
|
||||
negative_cache_ttl: Negative DNS Cache TTL.
|
||||
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
|
||||
negative responses (e.g., NXDOMAIN) from the upstream servers.
|
||||
|
||||
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
|
||||
the upstream nameservers configured on the cluster).
|
||||
|
|
@ -136,9 +138,9 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Firewall]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
|
||||
cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
|
||||
)
|
||||
|
||||
def list(
|
||||
|
|
@ -204,7 +206,7 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> FirewallDeleteResponse:
|
||||
) -> Optional[FirewallDeleteResponse]:
|
||||
"""
|
||||
Delete a configured DNS Firewall Cluster.
|
||||
|
||||
|
|
@ -232,9 +234,9 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[FirewallDeleteResponse]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[FirewallDeleteResponse]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[FirewallDeleteResponse], ResultWrapper[FirewallDeleteResponse]),
|
||||
cast_to=cast(Type[Optional[FirewallDeleteResponse]], ResultWrapper[FirewallDeleteResponse]),
|
||||
)
|
||||
|
||||
def edit(
|
||||
|
|
@ -242,6 +244,7 @@ class FirewallResource(SyncAPIResource):
|
|||
dns_firewall_id: str,
|
||||
*,
|
||||
account_id: str,
|
||||
id: str,
|
||||
deprecate_any_requests: bool,
|
||||
dns_firewall_ips: List[FirewallIPsParam],
|
||||
ecs_fallback: bool,
|
||||
|
|
@ -259,7 +262,7 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Firewall:
|
||||
) -> Optional[Firewall]:
|
||||
"""
|
||||
Modify a DNS Firewall Cluster configuration.
|
||||
|
||||
|
|
@ -268,19 +271,26 @@ class FirewallResource(SyncAPIResource):
|
|||
|
||||
dns_firewall_id: Identifier
|
||||
|
||||
id: Identifier
|
||||
|
||||
deprecate_any_requests: Deprecate the response to ANY requests.
|
||||
|
||||
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
|
||||
|
||||
maximum_cache_ttl: Maximum DNS Cache TTL.
|
||||
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
|
||||
decreased to the maximum defined here for caching purposes.
|
||||
|
||||
minimum_cache_ttl: Minimum DNS Cache TTL.
|
||||
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
|
||||
increased to the minimum defined here for caching purposes.
|
||||
|
||||
name: DNS Firewall Cluster Name.
|
||||
|
||||
attack_mitigation: Attack mitigation settings.
|
||||
|
||||
negative_cache_ttl: Negative DNS Cache TTL.
|
||||
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
|
||||
negative responses (e.g., NXDOMAIN) from the upstream servers.
|
||||
|
||||
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
|
||||
the upstream nameservers configured on the cluster).
|
||||
|
|
@ -304,6 +314,7 @@ class FirewallResource(SyncAPIResource):
|
|||
f"/accounts/{account_id}/dns_firewall/{dns_firewall_id}",
|
||||
body=maybe_transform(
|
||||
{
|
||||
"id": id,
|
||||
"deprecate_any_requests": deprecate_any_requests,
|
||||
"dns_firewall_ips": dns_firewall_ips,
|
||||
"ecs_fallback": ecs_fallback,
|
||||
|
|
@ -323,9 +334,9 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Firewall]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
|
||||
cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
|
||||
)
|
||||
|
||||
def get(
|
||||
|
|
@ -339,7 +350,7 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Firewall:
|
||||
) -> Optional[Firewall]:
|
||||
"""
|
||||
Show a single configured DNS Firewall cluster for an account.
|
||||
|
||||
|
|
@ -367,9 +378,9 @@ class FirewallResource(SyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Firewall]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
|
||||
cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -406,7 +417,7 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Firewall:
|
||||
) -> Optional[Firewall]:
|
||||
"""
|
||||
Create a configured DNS Firewall Cluster.
|
||||
|
||||
|
|
@ -421,11 +432,16 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
|
||||
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
|
||||
|
||||
maximum_cache_ttl: Maximum DNS Cache TTL.
|
||||
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
|
||||
decreased to the maximum defined here for caching purposes.
|
||||
|
||||
minimum_cache_ttl: Minimum DNS Cache TTL.
|
||||
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
|
||||
increased to the minimum defined here for caching purposes.
|
||||
|
||||
negative_cache_ttl: Negative DNS Cache TTL.
|
||||
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
|
||||
negative responses (e.g., NXDOMAIN) from the upstream servers.
|
||||
|
||||
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
|
||||
the upstream nameservers configured on the cluster).
|
||||
|
|
@ -465,9 +481,9 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Firewall]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
|
||||
cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
|
||||
)
|
||||
|
||||
def list(
|
||||
|
|
@ -533,7 +549,7 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> FirewallDeleteResponse:
|
||||
) -> Optional[FirewallDeleteResponse]:
|
||||
"""
|
||||
Delete a configured DNS Firewall Cluster.
|
||||
|
||||
|
|
@ -561,9 +577,9 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[FirewallDeleteResponse]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[FirewallDeleteResponse]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[FirewallDeleteResponse], ResultWrapper[FirewallDeleteResponse]),
|
||||
cast_to=cast(Type[Optional[FirewallDeleteResponse]], ResultWrapper[FirewallDeleteResponse]),
|
||||
)
|
||||
|
||||
async def edit(
|
||||
|
|
@ -571,6 +587,7 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
dns_firewall_id: str,
|
||||
*,
|
||||
account_id: str,
|
||||
id: str,
|
||||
deprecate_any_requests: bool,
|
||||
dns_firewall_ips: List[FirewallIPsParam],
|
||||
ecs_fallback: bool,
|
||||
|
|
@ -588,7 +605,7 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Firewall:
|
||||
) -> Optional[Firewall]:
|
||||
"""
|
||||
Modify a DNS Firewall Cluster configuration.
|
||||
|
||||
|
|
@ -597,19 +614,26 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
|
||||
dns_firewall_id: Identifier
|
||||
|
||||
id: Identifier
|
||||
|
||||
deprecate_any_requests: Deprecate the response to ANY requests.
|
||||
|
||||
ecs_fallback: Forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
|
||||
|
||||
maximum_cache_ttl: Maximum DNS Cache TTL.
|
||||
maximum_cache_ttl: Maximum DNS cache TTL. This setting sets an upper bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Higher TTLs will be
|
||||
decreased to the maximum defined here for caching purposes.
|
||||
|
||||
minimum_cache_ttl: Minimum DNS Cache TTL.
|
||||
minimum_cache_ttl: Minimum DNS cache TTL. This setting sets a lower bound on DNS TTLs for purposes
|
||||
of caching between DNS Firewall and the upstream servers. Lower TTLs will be
|
||||
increased to the minimum defined here for caching purposes.
|
||||
|
||||
name: DNS Firewall Cluster Name.
|
||||
|
||||
attack_mitigation: Attack mitigation settings.
|
||||
|
||||
negative_cache_ttl: Negative DNS Cache TTL.
|
||||
negative_cache_ttl: Negative DNS cache TTL. This setting controls how long DNS Firewall should cache
|
||||
negative responses (e.g., NXDOMAIN) from the upstream servers.
|
||||
|
||||
ratelimit: Ratelimit in queries per second per datacenter (applies to DNS queries sent to
|
||||
the upstream nameservers configured on the cluster).
|
||||
|
|
@ -633,6 +657,7 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
f"/accounts/{account_id}/dns_firewall/{dns_firewall_id}",
|
||||
body=await async_maybe_transform(
|
||||
{
|
||||
"id": id,
|
||||
"deprecate_any_requests": deprecate_any_requests,
|
||||
"dns_firewall_ips": dns_firewall_ips,
|
||||
"ecs_fallback": ecs_fallback,
|
||||
|
|
@ -652,9 +677,9 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Firewall]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
|
||||
cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
|
||||
)
|
||||
|
||||
async def get(
|
||||
|
|
@ -668,7 +693,7 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
) -> Firewall:
|
||||
) -> Optional[Firewall]:
|
||||
"""
|
||||
Show a single configured DNS Firewall cluster for an account.
|
||||
|
||||
|
|
@ -696,9 +721,9 @@ class AsyncFirewallResource(AsyncAPIResource):
|
|||
extra_query=extra_query,
|
||||
extra_body=extra_body,
|
||||
timeout=timeout,
|
||||
post_parser=ResultWrapper[Firewall]._unwrapper,
|
||||
post_parser=ResultWrapper[Optional[Firewall]]._unwrapper,
|
||||
),
|
||||
cast_to=cast(Type[Firewall], ResultWrapper[Firewall]),
|
||||
cast_to=cast(Type[Optional[Firewall]], ResultWrapper[Firewall]),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -31,10 +31,7 @@ from ...types.dns import (
|
|||
record_update_params,
|
||||
)
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.dns.record import Record
|
||||
from ...types.dns.ttl_param import TTLParam
|
||||
from ...types.dns.record_tags import RecordTags
|
||||
|
|
@ -4326,6 +4323,10 @@ class RecordsResource(SyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
return self._post(
|
||||
f"/zones/{zone_id}/dns_records/import",
|
||||
body=maybe_transform(
|
||||
|
|
@ -8668,6 +8669,10 @@ class AsyncRecordsResource(AsyncAPIResource):
|
|||
"""
|
||||
if not zone_id:
|
||||
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
|
||||
# It should be noted that the actual Content-Type header that will be
|
||||
# sent to the server will contain a `boundary` parameter, e.g.
|
||||
# multipart/form-data; boundary=---abc--
|
||||
extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
|
||||
return await self._post(
|
||||
f"/zones/{zone_id}/dns_records/import",
|
||||
body=await async_maybe_transform(
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...types.dns import setting_edit_params
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.dns.dns_setting_param import DNSSettingParam
|
||||
from ...types.dns.setting_get_response import SettingGetResponse
|
||||
from ...types.dns.setting_edit_response import SettingEditResponse
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from .._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from .._wrappers import ResultWrapper
|
||||
from .._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from .._base_client import make_request_options
|
||||
from ..types.dnssec import dnssec_edit_params
|
||||
from ..types.dnssec.dnssec import DNSSEC
|
||||
from ..types.dnssec.dnssec_delete_response import DNSSECDeleteResponse
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ....pagination import SyncSinglePage, AsyncSinglePage
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.durable_objects.namespace import Namespace
|
||||
|
||||
__all__ = ["NamespacesResource", "AsyncNamespacesResource"]
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ....pagination import SyncCursorLimitPagination, AsyncCursorLimitPagination
|
||||
from ...._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import AsyncPaginator, make_request_options
|
||||
from ....types.durable_objects.namespaces import object_list_params
|
||||
from ....types.durable_objects.namespaces.durable_object import DurableObject
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ...pagination import SyncV4PagePaginationArray, AsyncV4PagePaginationArray
|
||||
from ..._base_client import (
|
||||
AsyncPaginator,
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import AsyncPaginator, make_request_options
|
||||
from ...types.email_routing import address_list_params, address_create_params
|
||||
from ...types.email_routing.address import Address
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ from ..._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.email_routing.dns_get_response import DNSGetResponse
|
||||
|
||||
__all__ = ["DNSResource", "AsyncDNSResource"]
|
||||
|
|
|
|||
|
|
@ -45,9 +45,7 @@ from ..._response import (
|
|||
)
|
||||
from ..._wrappers import ResultWrapper
|
||||
from .rules.rules import RulesResource, AsyncRulesResource
|
||||
from ..._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ..._base_client import make_request_options
|
||||
from ...types.email_routing import email_routing_enable_params, email_routing_disable_params
|
||||
from ...types.email_routing.settings import Settings
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ from ...._response import (
|
|||
async_to_streamed_response_wrapper,
|
||||
)
|
||||
from ...._wrappers import ResultWrapper
|
||||
from ...._base_client import (
|
||||
make_request_options,
|
||||
)
|
||||
from ...._base_client import make_request_options
|
||||
from ....types.email_routing.rules import catch_all_update_params
|
||||
from ....types.email_routing.rules.catch_all_action_param import CatchAllActionParam
|
||||
from ....types.email_routing.rules.catch_all_get_response import CatchAllGetResponse
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue