Skip to content

Commit ad9e772

Browse files
committed
chore: merge main and bump version to 5.7.0
2 parents 564362d + 02ab9a9 commit ad9e772

25 files changed

Lines changed: 262 additions & 283 deletions

File tree

‎.release-please-manifest.json‎

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

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cloudflare"
3-
version = "5.6.0"
3+
version = "5.7.0"
44
description = "The official Python library for the cloudflare API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

‎requirements-dev.lock‎

Lines changed: 49 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,52 @@
11
# This file was autogenerated by uv via the following command:
22
# uv export -o requirements-dev.lock --no-hashes
33
-e .
4-
annotated-types==0.7.0
5-
# via pydantic
6-
anyio==4.12.1
7-
# via
8-
# cloudflare
9-
# httpx
10-
backports-asyncio-runner==1.2.0 ; python_full_version < '3.11'
11-
# via pytest-asyncio
12-
certifi==2026.1.4
13-
# via
14-
# httpcore
15-
# httpx
16-
colorama==0.4.6
17-
# via
18-
# griffe
19-
# pytest
20-
dirty-equals==0.11
21-
distro==1.9.0
22-
# via cloudflare
23-
exceptiongroup==1.3.1 ; python_full_version < '3.11'
24-
# via
25-
# anyio
26-
# pytest
27-
execnet==2.1.2
28-
# via pytest-xdist
29-
griffe==1.14.0 ; python_full_version < '3.10'
30-
griffe==1.15.0 ; python_full_version >= '3.10'
31-
h11==0.16.0
32-
# via httpcore
33-
httpcore==1.0.9
34-
# via httpx
35-
httpx==0.28.1
36-
# via
37-
# cloudflare
38-
# respx
39-
idna==3.11
40-
# via
41-
# anyio
42-
# httpx
43-
importlib-metadata==8.7.1
44-
iniconfig==2.1.0 ; python_full_version < '3.10'
45-
# via pytest
46-
iniconfig==2.3.0 ; python_full_version >= '3.10'
47-
# via pytest
48-
markdown-it-py==3.0.0 ; python_full_version < '3.10'
49-
# via rich
50-
markdown-it-py==4.0.0 ; python_full_version >= '3.10'
51-
# via rich
52-
mdurl==0.1.2
53-
# via markdown-it-py
54-
mypy==1.17.0
55-
mypy-extensions==1.1.0
56-
# via mypy
57-
nodeenv==1.10.0
58-
# via pyright
59-
packaging==25.0
60-
# via pytest
61-
pathspec==1.0.3
62-
# via mypy
63-
pluggy==1.6.0
64-
# via pytest
65-
pydantic==2.12.5
66-
# via cloudflare
67-
pydantic-core==2.41.5
68-
# via pydantic
69-
pygments==2.19.2
70-
# via
71-
# pytest
72-
# rich
73-
pyright==1.1.399
74-
pytest==8.4.2 ; python_full_version < '3.10'
75-
# via
76-
# pytest-asyncio
77-
# pytest-xdist
78-
pytest==9.0.2 ; python_full_version >= '3.10'
79-
# via
80-
# pytest-asyncio
81-
# pytest-xdist
82-
pytest-asyncio==1.2.0 ; python_full_version < '3.10'
83-
pytest-asyncio==1.3.0 ; python_full_version >= '3.10'
84-
pytest-xdist==3.8.0
85-
python-dateutil==2.9.0.post0 ; python_full_version < '3.10'
86-
# via time-machine
87-
respx==0.22.0
88-
rich==14.2.0
89-
ruff==0.14.13
90-
six==1.17.0 ; python_full_version < '3.10'
91-
# via python-dateutil
92-
sniffio==1.3.1
93-
# via cloudflare
94-
time-machine==2.19.0 ; python_full_version < '3.10'
95-
time-machine==3.2.0 ; python_full_version >= '3.10'
96-
tomli==2.4.0 ; python_full_version < '3.11'
97-
# via
98-
# mypy
99-
# pytest
100-
typing-extensions==4.15.0
101-
# via
102-
# anyio
103-
# cloudflare
104-
# exceptiongroup
105-
# mypy
106-
# pydantic
107-
# pydantic-core
108-
# pyright
109-
# pytest-asyncio
110-
# typing-inspection
111-
typing-inspection==0.4.2
112-
# via pydantic
113-
zipp==3.23.0
114-
# via importlib-metadata
4+
annotated-types==0.7.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
5+
anyio==4.12.1 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
6+
backports-asyncio-runner==1.2.0 ; (python_full_version < '3.11' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.11' and extra != 'group-10-cloudflare-pydantic-v1')
7+
certifi==2026.1.4 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
8+
colorama==0.4.6 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
9+
dirty-equals==0.11 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
10+
distro==1.9.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
11+
exceptiongroup==1.3.1 ; (python_full_version < '3.11' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.11' and extra != 'group-10-cloudflare-pydantic-v1')
12+
execnet==2.1.2 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
13+
griffe==1.14.0 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
14+
griffe==1.15.0 ; (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
15+
h11==0.16.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
16+
httpcore==1.0.9 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
17+
httpx==0.28.1 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
18+
idna==3.11 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
19+
importlib-metadata==8.7.1 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
20+
iniconfig==2.1.0 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
21+
iniconfig==2.3.0 ; (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
22+
markdown-it-py==3.0.0 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
23+
markdown-it-py==4.0.0 ; (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
24+
mdurl==0.1.2 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
25+
mypy==1.17.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
26+
mypy-extensions==1.1.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
27+
nodeenv==1.10.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
28+
packaging==25.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
29+
pathspec==1.0.3 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
30+
pluggy==1.6.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
31+
pydantic==1.10.26 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
32+
pydantic==2.12.5 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
33+
pydantic-core==2.41.5 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
34+
pygments==2.19.2 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
35+
pyright==1.1.399 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
36+
pytest==8.4.2 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
37+
pytest==9.0.2 ; (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
38+
pytest-asyncio==1.2.0 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
39+
pytest-asyncio==1.3.0 ; (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
40+
pytest-xdist==3.8.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
41+
python-dateutil==2.9.0.post0 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
42+
respx==0.22.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
43+
rich==14.2.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
44+
ruff==0.14.13 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
45+
six==1.17.0 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
46+
sniffio==1.3.1 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
47+
time-machine==2.19.0 ; (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
48+
time-machine==3.2.0 ; (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version >= '3.10' and extra != 'group-10-cloudflare-pydantic-v1')
49+
tomli==2.4.0 ; (python_full_version < '3.11' and extra != 'group-10-cloudflare-pydantic-v2') or (python_full_version < '3.11' and extra != 'group-10-cloudflare-pydantic-v1')
50+
typing-extensions==4.15.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
51+
typing-inspection==0.4.2 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'
52+
zipp==3.23.0 ; extra != 'group-10-cloudflare-pydantic-v2' or extra != 'group-10-cloudflare-pydantic-v1'

‎src/cloudflare/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "cloudflare"
4-
__version__ = "5.6.0" # x-release-please-version
4+
__version__ = "5.7.0" # x-release-please-version
55
__api_version__ = ""

‎src/cloudflare/resources/accounts/subscriptions.py‎

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
async_to_streamed_response_wrapper,
1919
)
2020
from ..._wrappers import ResultWrapper
21-
from ...pagination import SyncSinglePage, AsyncSinglePage
22-
from ..._base_client import AsyncPaginator, make_request_options
23-
from ...types.accounts import subscription_create_params, subscription_update_params
21+
from ..._base_client import make_request_options
22+
from ...types.accounts import subscription_update_params
2423
from ...types.shared.subscription import Subscription
2524
from ...types.shared_params.rate_plan import RatePlan
2625
from ...types.accounts.subscription_delete_response import SubscriptionDeleteResponse
@@ -544,69 +543,45 @@ class SubscriptionsResourceWithRawResponse:
544543
def __init__(self, subscriptions: SubscriptionsResource) -> None:
545544
self._subscriptions = subscriptions
546545

547-
self.create = to_raw_response_wrapper(
548-
subscriptions.create,
549-
)
550546
self.update = to_raw_response_wrapper(
551547
subscriptions.update,
552548
)
553549
self.delete = to_raw_response_wrapper(
554550
subscriptions.delete,
555551
)
556-
self.get = to_raw_response_wrapper(
557-
subscriptions.get,
558-
)
559552

560553

561554
class AsyncSubscriptionsResourceWithRawResponse:
562555
def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None:
563556
self._subscriptions = subscriptions
564557

565-
self.create = async_to_raw_response_wrapper(
566-
subscriptions.create,
567-
)
568558
self.update = async_to_raw_response_wrapper(
569559
subscriptions.update,
570560
)
571561
self.delete = async_to_raw_response_wrapper(
572562
subscriptions.delete,
573563
)
574-
self.get = async_to_raw_response_wrapper(
575-
subscriptions.get,
576-
)
577564

578565

579566
class SubscriptionsResourceWithStreamingResponse:
580567
def __init__(self, subscriptions: SubscriptionsResource) -> None:
581568
self._subscriptions = subscriptions
582569

583-
self.create = to_streamed_response_wrapper(
584-
subscriptions.create,
585-
)
586570
self.update = to_streamed_response_wrapper(
587571
subscriptions.update,
588572
)
589573
self.delete = to_streamed_response_wrapper(
590574
subscriptions.delete,
591575
)
592-
self.get = to_streamed_response_wrapper(
593-
subscriptions.get,
594-
)
595576

596577

597578
class AsyncSubscriptionsResourceWithStreamingResponse:
598579
def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None:
599580
self._subscriptions = subscriptions
600581

601-
self.create = async_to_streamed_response_wrapper(
602-
subscriptions.create,
603-
)
604582
self.update = async_to_streamed_response_wrapper(
605583
subscriptions.update,
606584
)
607585
self.delete = async_to_streamed_response_wrapper(
608586
subscriptions.delete,
609587
)
610-
self.get = async_to_streamed_response_wrapper(
611-
subscriptions.get,
612-
)

‎src/cloudflare/resources/billing/usage.py‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import httpx
1010

11-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11+
from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
1212
from ..._utils import path_template, maybe_transform, async_maybe_transform
1313
from ..._compat import cached_property
1414
from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -772,6 +772,9 @@ def __init__(self, usage: UsageResource) -> None:
772772
usage.paygo_info, # pyright: ignore[reportDeprecated],
773773
)
774774
)
775+
self.paygo_info = to_raw_response_wrapper(
776+
usage.paygo_info,
777+
)
775778

776779

777780
class AsyncUsageResourceWithRawResponse:
@@ -802,6 +805,9 @@ def __init__(self, usage: AsyncUsageResource) -> None:
802805
usage.paygo_info, # pyright: ignore[reportDeprecated],
803806
)
804807
)
808+
self.paygo_info = async_to_raw_response_wrapper(
809+
usage.paygo_info,
810+
)
805811

806812

807813
class UsageResourceWithStreamingResponse:
@@ -832,6 +838,9 @@ def __init__(self, usage: UsageResource) -> None:
832838
usage.paygo_info, # pyright: ignore[reportDeprecated],
833839
)
834840
)
841+
self.paygo_info = to_streamed_response_wrapper(
842+
usage.paygo_info,
843+
)
835844

836845

837846
class AsyncUsageResourceWithStreamingResponse:
@@ -862,3 +871,6 @@ def __init__(self, usage: AsyncUsageResource) -> None:
862871
usage.paygo_info, # pyright: ignore[reportDeprecated],
863872
)
864873
)
874+
self.paygo_info = async_to_streamed_response_wrapper(
875+
usage.paygo_info,
876+
)

0 commit comments

Comments
 (0)