Skip to content

Commit 5fd3378

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#182)
1 parent 0ad46e1 commit 5fd3378

File tree

591 files changed

+5281
-5464
lines changed

Some content is hidden

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

591 files changed

+5281
-5464
lines changed

api.md

+434-452
Large diffs are not rendered by default.

src/cloudflare/_client.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Cloudflare(SyncAPIClient):
6767
custom_hostnames: resources.CustomHostnames
6868
custom_nameservers: resources.CustomNameservers
6969
dns: resources.DNS
70-
dnssec: resources.DNSSEC
70+
dnssec: resources.DNSSECResource
7171
email_routing: resources.EmailRouting
7272
filters: resources.Filters
7373
firewall: resources.Firewall
@@ -220,7 +220,7 @@ def __init__(
220220
self.custom_hostnames = resources.CustomHostnames(self)
221221
self.custom_nameservers = resources.CustomNameservers(self)
222222
self.dns = resources.DNS(self)
223-
self.dnssec = resources.DNSSEC(self)
223+
self.dnssec = resources.DNSSECResource(self)
224224
self.email_routing = resources.EmailRouting(self)
225225
self.filters = resources.Filters(self)
226226
self.firewall = resources.Firewall(self)
@@ -478,7 +478,7 @@ class AsyncCloudflare(AsyncAPIClient):
478478
custom_hostnames: resources.AsyncCustomHostnames
479479
custom_nameservers: resources.AsyncCustomNameservers
480480
dns: resources.AsyncDNS
481-
dnssec: resources.AsyncDNSSEC
481+
dnssec: resources.AsyncDNSSECResource
482482
email_routing: resources.AsyncEmailRouting
483483
filters: resources.AsyncFilters
484484
firewall: resources.AsyncFirewall
@@ -631,7 +631,7 @@ def __init__(
631631
self.custom_hostnames = resources.AsyncCustomHostnames(self)
632632
self.custom_nameservers = resources.AsyncCustomNameservers(self)
633633
self.dns = resources.AsyncDNS(self)
634-
self.dnssec = resources.AsyncDNSSEC(self)
634+
self.dnssec = resources.AsyncDNSSECResource(self)
635635
self.email_routing = resources.AsyncEmailRouting(self)
636636
self.filters = resources.AsyncFilters(self)
637637
self.firewall = resources.AsyncFirewall(self)
@@ -890,7 +890,7 @@ def __init__(self, client: Cloudflare) -> None:
890890
self.custom_hostnames = resources.CustomHostnamesWithRawResponse(client.custom_hostnames)
891891
self.custom_nameservers = resources.CustomNameserversWithRawResponse(client.custom_nameservers)
892892
self.dns = resources.DNSWithRawResponse(client.dns)
893-
self.dnssec = resources.DNSSECWithRawResponse(client.dnssec)
893+
self.dnssec = resources.DNSSECResourceWithRawResponse(client.dnssec)
894894
self.email_routing = resources.EmailRoutingWithRawResponse(client.email_routing)
895895
self.filters = resources.FiltersWithRawResponse(client.filters)
896896
self.firewall = resources.FirewallWithRawResponse(client.firewall)
@@ -978,7 +978,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
978978
self.custom_hostnames = resources.AsyncCustomHostnamesWithRawResponse(client.custom_hostnames)
979979
self.custom_nameservers = resources.AsyncCustomNameserversWithRawResponse(client.custom_nameservers)
980980
self.dns = resources.AsyncDNSWithRawResponse(client.dns)
981-
self.dnssec = resources.AsyncDNSSECWithRawResponse(client.dnssec)
981+
self.dnssec = resources.AsyncDNSSECResourceWithRawResponse(client.dnssec)
982982
self.email_routing = resources.AsyncEmailRoutingWithRawResponse(client.email_routing)
983983
self.filters = resources.AsyncFiltersWithRawResponse(client.filters)
984984
self.firewall = resources.AsyncFirewallWithRawResponse(client.firewall)
@@ -1068,7 +1068,7 @@ def __init__(self, client: Cloudflare) -> None:
10681068
self.custom_hostnames = resources.CustomHostnamesWithStreamingResponse(client.custom_hostnames)
10691069
self.custom_nameservers = resources.CustomNameserversWithStreamingResponse(client.custom_nameservers)
10701070
self.dns = resources.DNSWithStreamingResponse(client.dns)
1071-
self.dnssec = resources.DNSSECWithStreamingResponse(client.dnssec)
1071+
self.dnssec = resources.DNSSECResourceWithStreamingResponse(client.dnssec)
10721072
self.email_routing = resources.EmailRoutingWithStreamingResponse(client.email_routing)
10731073
self.filters = resources.FiltersWithStreamingResponse(client.filters)
10741074
self.firewall = resources.FirewallWithStreamingResponse(client.firewall)
@@ -1160,7 +1160,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
11601160
self.custom_hostnames = resources.AsyncCustomHostnamesWithStreamingResponse(client.custom_hostnames)
11611161
self.custom_nameservers = resources.AsyncCustomNameserversWithStreamingResponse(client.custom_nameservers)
11621162
self.dns = resources.AsyncDNSWithStreamingResponse(client.dns)
1163-
self.dnssec = resources.AsyncDNSSECWithStreamingResponse(client.dnssec)
1163+
self.dnssec = resources.AsyncDNSSECResourceWithStreamingResponse(client.dnssec)
11641164
self.email_routing = resources.AsyncEmailRoutingWithStreamingResponse(client.email_routing)
11651165
self.filters = resources.AsyncFiltersWithStreamingResponse(client.filters)
11661166
self.firewall = resources.AsyncFirewallWithStreamingResponse(client.firewall)

src/cloudflare/resources/__init__.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@
177177
AsyncZonesWithStreamingResponse,
178178
)
179179
from .dnssec import (
180-
DNSSEC,
181-
AsyncDNSSEC,
182-
DNSSECWithRawResponse,
183-
AsyncDNSSECWithRawResponse,
184-
DNSSECWithStreamingResponse,
185-
AsyncDNSSECWithStreamingResponse,
180+
DNSSECResource,
181+
AsyncDNSSECResource,
182+
DNSSECResourceWithRawResponse,
183+
AsyncDNSSECResourceWithRawResponse,
184+
DNSSECResourceWithStreamingResponse,
185+
AsyncDNSSECResourceWithStreamingResponse,
186186
)
187187
from .images import (
188188
Images,
@@ -762,12 +762,12 @@
762762
"AsyncDNSWithRawResponse",
763763
"DNSWithStreamingResponse",
764764
"AsyncDNSWithStreamingResponse",
765-
"DNSSEC",
766-
"AsyncDNSSEC",
767-
"DNSSECWithRawResponse",
768-
"AsyncDNSSECWithRawResponse",
769-
"DNSSECWithStreamingResponse",
770-
"AsyncDNSSECWithStreamingResponse",
765+
"DNSSECResource",
766+
"AsyncDNSSECResource",
767+
"DNSSECResourceWithRawResponse",
768+
"AsyncDNSSECResourceWithRawResponse",
769+
"DNSSECResourceWithStreamingResponse",
770+
"AsyncDNSSECResourceWithStreamingResponse",
771771
"EmailRouting",
772772
"AsyncEmailRouting",
773773
"EmailRoutingWithRawResponse",

src/cloudflare/resources/alerting/destinations/webhooks.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
make_request_options,
2525
)
2626
from ....types.alerting.destinations import (
27-
AaaWebhooks,
27+
AlertingWebhooks,
2828
WebhookListResponse,
2929
WebhookCreateResponse,
3030
WebhookDeleteResponse,
@@ -267,7 +267,7 @@ def get(
267267
extra_query: Query | None = None,
268268
extra_body: Body | None = None,
269269
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
270-
) -> AaaWebhooks:
270+
) -> AlertingWebhooks:
271271
"""
272272
Get details for a single webhooks destination.
273273
@@ -297,7 +297,7 @@ def get(
297297
timeout=timeout,
298298
post_parser=ResultWrapper._unwrapper,
299299
),
300-
cast_to=cast(Type[AaaWebhooks], ResultWrapper[AaaWebhooks]),
300+
cast_to=cast(Type[AlertingWebhooks], ResultWrapper[AlertingWebhooks]),
301301
)
302302

303303

@@ -532,7 +532,7 @@ async def get(
532532
extra_query: Query | None = None,
533533
extra_body: Body | None = None,
534534
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
535-
) -> AaaWebhooks:
535+
) -> AlertingWebhooks:
536536
"""
537537
Get details for a single webhooks destination.
538538
@@ -562,7 +562,7 @@ async def get(
562562
timeout=timeout,
563563
post_parser=ResultWrapper._unwrapper,
564564
),
565-
cast_to=cast(Type[AaaWebhooks], ResultWrapper[AaaWebhooks]),
565+
cast_to=cast(Type[AlertingWebhooks], ResultWrapper[AlertingWebhooks]),
566566
)
567567

568568

src/cloudflare/resources/alerting/history.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
AsyncPaginator,
2323
make_request_options,
2424
)
25-
from ...types.alerting import AaaHistory, history_list_params
25+
from ...types.alerting import AlertingHistory, history_list_params
2626

2727
__all__ = ["History", "AsyncHistory"]
2828

@@ -50,7 +50,7 @@ def list(
5050
extra_query: Query | None = None,
5151
extra_body: Body | None = None,
5252
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
53-
) -> SyncV4PagePaginationArray[AaaHistory]:
53+
) -> SyncV4PagePaginationArray[AlertingHistory]:
5454
"""Gets a list of history records for notifications sent to an account.
5555
5656
The records
@@ -82,7 +82,7 @@ def list(
8282
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
8383
return self._get_api_list(
8484
f"/accounts/{account_id}/alerting/v3/history",
85-
page=SyncV4PagePaginationArray[AaaHistory],
85+
page=SyncV4PagePaginationArray[AlertingHistory],
8686
options=make_request_options(
8787
extra_headers=extra_headers,
8888
extra_query=extra_query,
@@ -98,7 +98,7 @@ def list(
9898
history_list_params.HistoryListParams,
9999
),
100100
),
101-
model=AaaHistory,
101+
model=AlertingHistory,
102102
)
103103

104104

@@ -125,7 +125,7 @@ def list(
125125
extra_query: Query | None = None,
126126
extra_body: Body | None = None,
127127
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
128-
) -> AsyncPaginator[AaaHistory, AsyncV4PagePaginationArray[AaaHistory]]:
128+
) -> AsyncPaginator[AlertingHistory, AsyncV4PagePaginationArray[AlertingHistory]]:
129129
"""Gets a list of history records for notifications sent to an account.
130130
131131
The records
@@ -157,7 +157,7 @@ def list(
157157
raise ValueError(f"Expected a non-empty value for `account_id` but received {account_id!r}")
158158
return self._get_api_list(
159159
f"/accounts/{account_id}/alerting/v3/history",
160-
page=AsyncV4PagePaginationArray[AaaHistory],
160+
page=AsyncV4PagePaginationArray[AlertingHistory],
161161
options=make_request_options(
162162
extra_headers=extra_headers,
163163
extra_query=extra_query,
@@ -173,7 +173,7 @@ def list(
173173
history_list_params.HistoryListParams,
174174
),
175175
),
176-
model=AaaHistory,
176+
model=AlertingHistory,
177177
)
178178

179179

src/cloudflare/resources/alerting/policies.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
make_request_options,
2626
)
2727
from ...types.alerting import (
28-
AaaPolicies,
28+
AlertingPolicies,
2929
PolicyListResponse,
3030
PolicyCreateResponse,
3131
PolicyDeleteResponse,
@@ -409,7 +409,7 @@ def get(
409409
extra_query: Query | None = None,
410410
extra_body: Body | None = None,
411411
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
412-
) -> AaaPolicies:
412+
) -> AlertingPolicies:
413413
"""
414414
Get details for a single policy.
415415
@@ -439,7 +439,7 @@ def get(
439439
timeout=timeout,
440440
post_parser=ResultWrapper._unwrapper,
441441
),
442-
cast_to=cast(Type[AaaPolicies], ResultWrapper[AaaPolicies]),
442+
cast_to=cast(Type[AlertingPolicies], ResultWrapper[AlertingPolicies]),
443443
)
444444

445445

@@ -815,7 +815,7 @@ async def get(
815815
extra_query: Query | None = None,
816816
extra_body: Body | None = None,
817817
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
818-
) -> AaaPolicies:
818+
) -> AlertingPolicies:
819819
"""
820820
Get details for a single policy.
821821
@@ -845,7 +845,7 @@ async def get(
845845
timeout=timeout,
846846
post_parser=ResultWrapper._unwrapper,
847847
),
848-
cast_to=cast(Type[AaaPolicies], ResultWrapper[AaaPolicies]),
848+
cast_to=cast(Type[AlertingPolicies], ResultWrapper[AlertingPolicies]),
849849
)
850850

851851

src/cloudflare/resources/certificate_authorities/hostname_associations.py

+9-21
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
make_request_options,
2525
)
2626
from ...types.certificate_authorities import (
27-
TLSCertificatesAndHostnamesHostnameAssociation,
27+
TLSHostnameAssociation,
2828
hostname_association_get_params,
2929
hostname_association_update_params,
3030
)
@@ -53,7 +53,7 @@ def update(
5353
extra_query: Query | None = None,
5454
extra_body: Body | None = None,
5555
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56-
) -> TLSCertificatesAndHostnamesHostnameAssociation:
56+
) -> TLSHostnameAssociation:
5757
"""
5858
Replace Hostname Associations
5959
@@ -90,10 +90,7 @@ def update(
9090
timeout=timeout,
9191
post_parser=ResultWrapper._unwrapper,
9292
),
93-
cast_to=cast(
94-
Type[TLSCertificatesAndHostnamesHostnameAssociation],
95-
ResultWrapper[TLSCertificatesAndHostnamesHostnameAssociation],
96-
),
93+
cast_to=cast(Type[TLSHostnameAssociation], ResultWrapper[TLSHostnameAssociation]),
9794
)
9895

9996
def get(
@@ -107,7 +104,7 @@ def get(
107104
extra_query: Query | None = None,
108105
extra_body: Body | None = None,
109106
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
110-
) -> TLSCertificatesAndHostnamesHostnameAssociation:
107+
) -> TLSHostnameAssociation:
111108
"""
112109
List Hostname Associations
113110
@@ -141,10 +138,7 @@ def get(
141138
),
142139
post_parser=ResultWrapper._unwrapper,
143140
),
144-
cast_to=cast(
145-
Type[TLSCertificatesAndHostnamesHostnameAssociation],
146-
ResultWrapper[TLSCertificatesAndHostnamesHostnameAssociation],
147-
),
141+
cast_to=cast(Type[TLSHostnameAssociation], ResultWrapper[TLSHostnameAssociation]),
148142
)
149143

150144

@@ -169,7 +163,7 @@ async def update(
169163
extra_query: Query | None = None,
170164
extra_body: Body | None = None,
171165
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
172-
) -> TLSCertificatesAndHostnamesHostnameAssociation:
166+
) -> TLSHostnameAssociation:
173167
"""
174168
Replace Hostname Associations
175169
@@ -206,10 +200,7 @@ async def update(
206200
timeout=timeout,
207201
post_parser=ResultWrapper._unwrapper,
208202
),
209-
cast_to=cast(
210-
Type[TLSCertificatesAndHostnamesHostnameAssociation],
211-
ResultWrapper[TLSCertificatesAndHostnamesHostnameAssociation],
212-
),
203+
cast_to=cast(Type[TLSHostnameAssociation], ResultWrapper[TLSHostnameAssociation]),
213204
)
214205

215206
async def get(
@@ -223,7 +214,7 @@ async def get(
223214
extra_query: Query | None = None,
224215
extra_body: Body | None = None,
225216
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
226-
) -> TLSCertificatesAndHostnamesHostnameAssociation:
217+
) -> TLSHostnameAssociation:
227218
"""
228219
List Hostname Associations
229220
@@ -257,10 +248,7 @@ async def get(
257248
),
258249
post_parser=ResultWrapper._unwrapper,
259250
),
260-
cast_to=cast(
261-
Type[TLSCertificatesAndHostnamesHostnameAssociation],
262-
ResultWrapper[TLSCertificatesAndHostnamesHostnameAssociation],
263-
),
251+
cast_to=cast(Type[TLSHostnameAssociation], ResultWrapper[TLSHostnameAssociation]),
264252
)
265253

266254

0 commit comments

Comments
 (0)