Skip to content

Commit 40e2545

Browse files
feat(api): update via SDK Studio (cloudflare#169)
1 parent e84ab27 commit 40e2545

File tree

193 files changed

+3535
-3821
lines changed

Some content is hidden

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

193 files changed

+3535
-3821
lines changed

api.md

Lines changed: 129 additions & 135 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class Cloudflare(SyncAPIClient):
5959
subscriptions: resources.Subscriptions
6060
acm: resources.ACM
6161
argo: resources.Argo
62-
available_plans: resources.AvailablePlans
63-
available_rate_plans: resources.AvailableRatePlans
62+
plans: resources.Plans
63+
rate_plans: resources.RatePlans
6464
certificate_authorities: resources.CertificateAuthorities
6565
client_certificates: resources.ClientCertificates
6666
custom_certificates: resources.CustomCertificates
@@ -212,8 +212,8 @@ def __init__(
212212
self.subscriptions = resources.Subscriptions(self)
213213
self.acm = resources.ACM(self)
214214
self.argo = resources.Argo(self)
215-
self.available_plans = resources.AvailablePlans(self)
216-
self.available_rate_plans = resources.AvailableRatePlans(self)
215+
self.plans = resources.Plans(self)
216+
self.rate_plans = resources.RatePlans(self)
217217
self.certificate_authorities = resources.CertificateAuthorities(self)
218218
self.client_certificates = resources.ClientCertificates(self)
219219
self.custom_certificates = resources.CustomCertificates(self)
@@ -470,8 +470,8 @@ class AsyncCloudflare(AsyncAPIClient):
470470
subscriptions: resources.AsyncSubscriptions
471471
acm: resources.AsyncACM
472472
argo: resources.AsyncArgo
473-
available_plans: resources.AsyncAvailablePlans
474-
available_rate_plans: resources.AsyncAvailableRatePlans
473+
plans: resources.AsyncPlans
474+
rate_plans: resources.AsyncRatePlans
475475
certificate_authorities: resources.AsyncCertificateAuthorities
476476
client_certificates: resources.AsyncClientCertificates
477477
custom_certificates: resources.AsyncCustomCertificates
@@ -623,8 +623,8 @@ def __init__(
623623
self.subscriptions = resources.AsyncSubscriptions(self)
624624
self.acm = resources.AsyncACM(self)
625625
self.argo = resources.AsyncArgo(self)
626-
self.available_plans = resources.AsyncAvailablePlans(self)
627-
self.available_rate_plans = resources.AsyncAvailableRatePlans(self)
626+
self.plans = resources.AsyncPlans(self)
627+
self.rate_plans = resources.AsyncRatePlans(self)
628628
self.certificate_authorities = resources.AsyncCertificateAuthorities(self)
629629
self.client_certificates = resources.AsyncClientCertificates(self)
630630
self.custom_certificates = resources.AsyncCustomCertificates(self)
@@ -882,8 +882,8 @@ def __init__(self, client: Cloudflare) -> None:
882882
self.subscriptions = resources.SubscriptionsWithRawResponse(client.subscriptions)
883883
self.acm = resources.ACMWithRawResponse(client.acm)
884884
self.argo = resources.ArgoWithRawResponse(client.argo)
885-
self.available_plans = resources.AvailablePlansWithRawResponse(client.available_plans)
886-
self.available_rate_plans = resources.AvailableRatePlansWithRawResponse(client.available_rate_plans)
885+
self.plans = resources.PlansWithRawResponse(client.plans)
886+
self.rate_plans = resources.RatePlansWithRawResponse(client.rate_plans)
887887
self.certificate_authorities = resources.CertificateAuthoritiesWithRawResponse(client.certificate_authorities)
888888
self.client_certificates = resources.ClientCertificatesWithRawResponse(client.client_certificates)
889889
self.custom_certificates = resources.CustomCertificatesWithRawResponse(client.custom_certificates)
@@ -968,8 +968,8 @@ def __init__(self, client: AsyncCloudflare) -> None:
968968
self.subscriptions = resources.AsyncSubscriptionsWithRawResponse(client.subscriptions)
969969
self.acm = resources.AsyncACMWithRawResponse(client.acm)
970970
self.argo = resources.AsyncArgoWithRawResponse(client.argo)
971-
self.available_plans = resources.AsyncAvailablePlansWithRawResponse(client.available_plans)
972-
self.available_rate_plans = resources.AsyncAvailableRatePlansWithRawResponse(client.available_rate_plans)
971+
self.plans = resources.AsyncPlansWithRawResponse(client.plans)
972+
self.rate_plans = resources.AsyncRatePlansWithRawResponse(client.rate_plans)
973973
self.certificate_authorities = resources.AsyncCertificateAuthoritiesWithRawResponse(
974974
client.certificate_authorities
975975
)
@@ -1058,8 +1058,8 @@ def __init__(self, client: Cloudflare) -> None:
10581058
self.subscriptions = resources.SubscriptionsWithStreamingResponse(client.subscriptions)
10591059
self.acm = resources.ACMWithStreamingResponse(client.acm)
10601060
self.argo = resources.ArgoWithStreamingResponse(client.argo)
1061-
self.available_plans = resources.AvailablePlansWithStreamingResponse(client.available_plans)
1062-
self.available_rate_plans = resources.AvailableRatePlansWithStreamingResponse(client.available_rate_plans)
1061+
self.plans = resources.PlansWithStreamingResponse(client.plans)
1062+
self.rate_plans = resources.RatePlansWithStreamingResponse(client.rate_plans)
10631063
self.certificate_authorities = resources.CertificateAuthoritiesWithStreamingResponse(
10641064
client.certificate_authorities
10651065
)
@@ -1150,8 +1150,8 @@ def __init__(self, client: AsyncCloudflare) -> None:
11501150
self.subscriptions = resources.AsyncSubscriptionsWithStreamingResponse(client.subscriptions)
11511151
self.acm = resources.AsyncACMWithStreamingResponse(client.acm)
11521152
self.argo = resources.AsyncArgoWithStreamingResponse(client.argo)
1153-
self.available_plans = resources.AsyncAvailablePlansWithStreamingResponse(client.available_plans)
1154-
self.available_rate_plans = resources.AsyncAvailableRatePlansWithStreamingResponse(client.available_rate_plans)
1153+
self.plans = resources.AsyncPlansWithStreamingResponse(client.plans)
1154+
self.rate_plans = resources.AsyncRatePlansWithStreamingResponse(client.rate_plans)
11551155
self.certificate_authorities = resources.AsyncCertificateAuthoritiesWithStreamingResponse(
11561156
client.certificate_authorities
11571157
)

src/cloudflare/resources/__init__.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@
136136
PCAPsWithStreamingResponse,
137137
AsyncPCAPsWithStreamingResponse,
138138
)
139+
from .plans import (
140+
Plans,
141+
AsyncPlans,
142+
PlansWithRawResponse,
143+
AsyncPlansWithRawResponse,
144+
PlansWithStreamingResponse,
145+
AsyncPlansWithStreamingResponse,
146+
)
139147
from .radar import (
140148
Radar,
141149
AsyncRadar,
@@ -352,6 +360,14 @@
352360
HyperdriveWithStreamingResponse,
353361
AsyncHyperdriveWithStreamingResponse,
354362
)
363+
from .rate_plans import (
364+
RatePlans,
365+
AsyncRatePlans,
366+
RatePlansWithRawResponse,
367+
AsyncRatePlansWithRawResponse,
368+
RatePlansWithStreamingResponse,
369+
AsyncRatePlansWithStreamingResponse,
370+
)
355371
from .zero_trust import (
356372
ZeroTrust,
357373
AsyncZeroTrust,
@@ -488,14 +504,6 @@
488504
WARPConnectorWithStreamingResponse,
489505
AsyncWARPConnectorWithStreamingResponse,
490506
)
491-
from .available_plans import (
492-
AvailablePlans,
493-
AsyncAvailablePlans,
494-
AvailablePlansWithRawResponse,
495-
AsyncAvailablePlansWithRawResponse,
496-
AvailablePlansWithStreamingResponse,
497-
AsyncAvailablePlansWithStreamingResponse,
498-
)
499507
from .durable_objects import (
500508
DurableObjects,
501509
AsyncDurableObjects,
@@ -576,14 +584,6 @@
576584
CustomCertificatesWithStreamingResponse,
577585
AsyncCustomCertificatesWithStreamingResponse,
578586
)
579-
from .available_rate_plans import (
580-
AvailableRatePlans,
581-
AsyncAvailableRatePlans,
582-
AvailableRatePlansWithRawResponse,
583-
AsyncAvailableRatePlansWithRawResponse,
584-
AvailableRatePlansWithStreamingResponse,
585-
AsyncAvailableRatePlansWithStreamingResponse,
586-
)
587587
from .keyless_certificates import (
588588
KeylessCertificates,
589589
AsyncKeylessCertificates,
@@ -714,18 +714,18 @@
714714
"AsyncArgoWithRawResponse",
715715
"ArgoWithStreamingResponse",
716716
"AsyncArgoWithStreamingResponse",
717-
"AvailablePlans",
718-
"AsyncAvailablePlans",
719-
"AvailablePlansWithRawResponse",
720-
"AsyncAvailablePlansWithRawResponse",
721-
"AvailablePlansWithStreamingResponse",
722-
"AsyncAvailablePlansWithStreamingResponse",
723-
"AvailableRatePlans",
724-
"AsyncAvailableRatePlans",
725-
"AvailableRatePlansWithRawResponse",
726-
"AsyncAvailableRatePlansWithRawResponse",
727-
"AvailableRatePlansWithStreamingResponse",
728-
"AsyncAvailableRatePlansWithStreamingResponse",
717+
"Plans",
718+
"AsyncPlans",
719+
"PlansWithRawResponse",
720+
"AsyncPlansWithRawResponse",
721+
"PlansWithStreamingResponse",
722+
"AsyncPlansWithStreamingResponse",
723+
"RatePlans",
724+
"AsyncRatePlans",
725+
"RatePlansWithRawResponse",
726+
"AsyncRatePlansWithRawResponse",
727+
"RatePlansWithStreamingResponse",
728+
"AsyncRatePlansWithStreamingResponse",
729729
"CertificateAuthorities",
730730
"AsyncCertificateAuthorities",
731731
"CertificateAuthoritiesWithRawResponse",

src/cloudflare/resources/alerting/__init__.py

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from .v3 import (
4-
V3,
5-
AsyncV3,
6-
V3WithRawResponse,
7-
AsyncV3WithRawResponse,
8-
V3WithStreamingResponse,
9-
AsyncV3WithStreamingResponse,
3+
from .history import (
4+
History,
5+
AsyncHistory,
6+
HistoryWithRawResponse,
7+
AsyncHistoryWithRawResponse,
8+
HistoryWithStreamingResponse,
9+
AsyncHistoryWithStreamingResponse,
1010
)
1111
from .alerting import (
1212
Alerting,
@@ -16,14 +16,56 @@
1616
AlertingWithStreamingResponse,
1717
AsyncAlertingWithStreamingResponse,
1818
)
19+
from .policies import (
20+
Policies,
21+
AsyncPolicies,
22+
PoliciesWithRawResponse,
23+
AsyncPoliciesWithRawResponse,
24+
PoliciesWithStreamingResponse,
25+
AsyncPoliciesWithStreamingResponse,
26+
)
27+
from .destinations import (
28+
Destinations,
29+
AsyncDestinations,
30+
DestinationsWithRawResponse,
31+
AsyncDestinationsWithRawResponse,
32+
DestinationsWithStreamingResponse,
33+
AsyncDestinationsWithStreamingResponse,
34+
)
35+
from .available_alerts import (
36+
AvailableAlerts,
37+
AsyncAvailableAlerts,
38+
AvailableAlertsWithRawResponse,
39+
AsyncAvailableAlertsWithRawResponse,
40+
AvailableAlertsWithStreamingResponse,
41+
AsyncAvailableAlertsWithStreamingResponse,
42+
)
1943

2044
__all__ = [
21-
"V3",
22-
"AsyncV3",
23-
"V3WithRawResponse",
24-
"AsyncV3WithRawResponse",
25-
"V3WithStreamingResponse",
26-
"AsyncV3WithStreamingResponse",
45+
"AvailableAlerts",
46+
"AsyncAvailableAlerts",
47+
"AvailableAlertsWithRawResponse",
48+
"AsyncAvailableAlertsWithRawResponse",
49+
"AvailableAlertsWithStreamingResponse",
50+
"AsyncAvailableAlertsWithStreamingResponse",
51+
"Destinations",
52+
"AsyncDestinations",
53+
"DestinationsWithRawResponse",
54+
"AsyncDestinationsWithRawResponse",
55+
"DestinationsWithStreamingResponse",
56+
"AsyncDestinationsWithStreamingResponse",
57+
"History",
58+
"AsyncHistory",
59+
"HistoryWithRawResponse",
60+
"AsyncHistoryWithRawResponse",
61+
"HistoryWithStreamingResponse",
62+
"AsyncHistoryWithStreamingResponse",
63+
"Policies",
64+
"AsyncPolicies",
65+
"PoliciesWithRawResponse",
66+
"AsyncPoliciesWithRawResponse",
67+
"PoliciesWithStreamingResponse",
68+
"AsyncPoliciesWithStreamingResponse",
2769
"Alerting",
2870
"AsyncAlerting",
2971
"AlertingWithRawResponse",

0 commit comments

Comments
 (0)