Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #169

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
264 changes: 129 additions & 135 deletions api.md

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class Cloudflare(SyncAPIClient):
subscriptions: resources.Subscriptions
acm: resources.ACM
argo: resources.Argo
available_plans: resources.AvailablePlans
available_rate_plans: resources.AvailableRatePlans
plans: resources.Plans
rate_plans: resources.RatePlans
certificate_authorities: resources.CertificateAuthorities
client_certificates: resources.ClientCertificates
custom_certificates: resources.CustomCertificates
Expand Down Expand Up @@ -212,8 +212,8 @@ def __init__(
self.subscriptions = resources.Subscriptions(self)
self.acm = resources.ACM(self)
self.argo = resources.Argo(self)
self.available_plans = resources.AvailablePlans(self)
self.available_rate_plans = resources.AvailableRatePlans(self)
self.plans = resources.Plans(self)
self.rate_plans = resources.RatePlans(self)
self.certificate_authorities = resources.CertificateAuthorities(self)
self.client_certificates = resources.ClientCertificates(self)
self.custom_certificates = resources.CustomCertificates(self)
Expand Down Expand Up @@ -470,8 +470,8 @@ class AsyncCloudflare(AsyncAPIClient):
subscriptions: resources.AsyncSubscriptions
acm: resources.AsyncACM
argo: resources.AsyncArgo
available_plans: resources.AsyncAvailablePlans
available_rate_plans: resources.AsyncAvailableRatePlans
plans: resources.AsyncPlans
rate_plans: resources.AsyncRatePlans
certificate_authorities: resources.AsyncCertificateAuthorities
client_certificates: resources.AsyncClientCertificates
custom_certificates: resources.AsyncCustomCertificates
Expand Down Expand Up @@ -623,8 +623,8 @@ def __init__(
self.subscriptions = resources.AsyncSubscriptions(self)
self.acm = resources.AsyncACM(self)
self.argo = resources.AsyncArgo(self)
self.available_plans = resources.AsyncAvailablePlans(self)
self.available_rate_plans = resources.AsyncAvailableRatePlans(self)
self.plans = resources.AsyncPlans(self)
self.rate_plans = resources.AsyncRatePlans(self)
self.certificate_authorities = resources.AsyncCertificateAuthorities(self)
self.client_certificates = resources.AsyncClientCertificates(self)
self.custom_certificates = resources.AsyncCustomCertificates(self)
Expand Down Expand Up @@ -882,8 +882,8 @@ def __init__(self, client: Cloudflare) -> None:
self.subscriptions = resources.SubscriptionsWithRawResponse(client.subscriptions)
self.acm = resources.ACMWithRawResponse(client.acm)
self.argo = resources.ArgoWithRawResponse(client.argo)
self.available_plans = resources.AvailablePlansWithRawResponse(client.available_plans)
self.available_rate_plans = resources.AvailableRatePlansWithRawResponse(client.available_rate_plans)
self.plans = resources.PlansWithRawResponse(client.plans)
self.rate_plans = resources.RatePlansWithRawResponse(client.rate_plans)
self.certificate_authorities = resources.CertificateAuthoritiesWithRawResponse(client.certificate_authorities)
self.client_certificates = resources.ClientCertificatesWithRawResponse(client.client_certificates)
self.custom_certificates = resources.CustomCertificatesWithRawResponse(client.custom_certificates)
Expand Down Expand Up @@ -968,8 +968,8 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.subscriptions = resources.AsyncSubscriptionsWithRawResponse(client.subscriptions)
self.acm = resources.AsyncACMWithRawResponse(client.acm)
self.argo = resources.AsyncArgoWithRawResponse(client.argo)
self.available_plans = resources.AsyncAvailablePlansWithRawResponse(client.available_plans)
self.available_rate_plans = resources.AsyncAvailableRatePlansWithRawResponse(client.available_rate_plans)
self.plans = resources.AsyncPlansWithRawResponse(client.plans)
self.rate_plans = resources.AsyncRatePlansWithRawResponse(client.rate_plans)
self.certificate_authorities = resources.AsyncCertificateAuthoritiesWithRawResponse(
client.certificate_authorities
)
Expand Down Expand Up @@ -1058,8 +1058,8 @@ def __init__(self, client: Cloudflare) -> None:
self.subscriptions = resources.SubscriptionsWithStreamingResponse(client.subscriptions)
self.acm = resources.ACMWithStreamingResponse(client.acm)
self.argo = resources.ArgoWithStreamingResponse(client.argo)
self.available_plans = resources.AvailablePlansWithStreamingResponse(client.available_plans)
self.available_rate_plans = resources.AvailableRatePlansWithStreamingResponse(client.available_rate_plans)
self.plans = resources.PlansWithStreamingResponse(client.plans)
self.rate_plans = resources.RatePlansWithStreamingResponse(client.rate_plans)
self.certificate_authorities = resources.CertificateAuthoritiesWithStreamingResponse(
client.certificate_authorities
)
Expand Down Expand Up @@ -1150,8 +1150,8 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.subscriptions = resources.AsyncSubscriptionsWithStreamingResponse(client.subscriptions)
self.acm = resources.AsyncACMWithStreamingResponse(client.acm)
self.argo = resources.AsyncArgoWithStreamingResponse(client.argo)
self.available_plans = resources.AsyncAvailablePlansWithStreamingResponse(client.available_plans)
self.available_rate_plans = resources.AsyncAvailableRatePlansWithStreamingResponse(client.available_rate_plans)
self.plans = resources.AsyncPlansWithStreamingResponse(client.plans)
self.rate_plans = resources.AsyncRatePlansWithStreamingResponse(client.rate_plans)
self.certificate_authorities = resources.AsyncCertificateAuthoritiesWithStreamingResponse(
client.certificate_authorities
)
Expand Down
56 changes: 28 additions & 28 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@
PCAPsWithStreamingResponse,
AsyncPCAPsWithStreamingResponse,
)
from .plans import (
Plans,
AsyncPlans,
PlansWithRawResponse,
AsyncPlansWithRawResponse,
PlansWithStreamingResponse,
AsyncPlansWithStreamingResponse,
)
from .radar import (
Radar,
AsyncRadar,
Expand Down Expand Up @@ -352,6 +360,14 @@
HyperdriveWithStreamingResponse,
AsyncHyperdriveWithStreamingResponse,
)
from .rate_plans import (
RatePlans,
AsyncRatePlans,
RatePlansWithRawResponse,
AsyncRatePlansWithRawResponse,
RatePlansWithStreamingResponse,
AsyncRatePlansWithStreamingResponse,
)
from .zero_trust import (
ZeroTrust,
AsyncZeroTrust,
Expand Down Expand Up @@ -488,14 +504,6 @@
WARPConnectorWithStreamingResponse,
AsyncWARPConnectorWithStreamingResponse,
)
from .available_plans import (
AvailablePlans,
AsyncAvailablePlans,
AvailablePlansWithRawResponse,
AsyncAvailablePlansWithRawResponse,
AvailablePlansWithStreamingResponse,
AsyncAvailablePlansWithStreamingResponse,
)
from .durable_objects import (
DurableObjects,
AsyncDurableObjects,
Expand Down Expand Up @@ -576,14 +584,6 @@
CustomCertificatesWithStreamingResponse,
AsyncCustomCertificatesWithStreamingResponse,
)
from .available_rate_plans import (
AvailableRatePlans,
AsyncAvailableRatePlans,
AvailableRatePlansWithRawResponse,
AsyncAvailableRatePlansWithRawResponse,
AvailableRatePlansWithStreamingResponse,
AsyncAvailableRatePlansWithStreamingResponse,
)
from .keyless_certificates import (
KeylessCertificates,
AsyncKeylessCertificates,
Expand Down Expand Up @@ -714,18 +714,18 @@
"AsyncArgoWithRawResponse",
"ArgoWithStreamingResponse",
"AsyncArgoWithStreamingResponse",
"AvailablePlans",
"AsyncAvailablePlans",
"AvailablePlansWithRawResponse",
"AsyncAvailablePlansWithRawResponse",
"AvailablePlansWithStreamingResponse",
"AsyncAvailablePlansWithStreamingResponse",
"AvailableRatePlans",
"AsyncAvailableRatePlans",
"AvailableRatePlansWithRawResponse",
"AsyncAvailableRatePlansWithRawResponse",
"AvailableRatePlansWithStreamingResponse",
"AsyncAvailableRatePlansWithStreamingResponse",
"Plans",
"AsyncPlans",
"PlansWithRawResponse",
"AsyncPlansWithRawResponse",
"PlansWithStreamingResponse",
"AsyncPlansWithStreamingResponse",
"RatePlans",
"AsyncRatePlans",
"RatePlansWithRawResponse",
"AsyncRatePlansWithRawResponse",
"RatePlansWithStreamingResponse",
"AsyncRatePlansWithStreamingResponse",
"CertificateAuthorities",
"AsyncCertificateAuthorities",
"CertificateAuthoritiesWithRawResponse",
Expand Down
68 changes: 55 additions & 13 deletions src/cloudflare/resources/alerting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .v3 import (
V3,
AsyncV3,
V3WithRawResponse,
AsyncV3WithRawResponse,
V3WithStreamingResponse,
AsyncV3WithStreamingResponse,
from .history import (
History,
AsyncHistory,
HistoryWithRawResponse,
AsyncHistoryWithRawResponse,
HistoryWithStreamingResponse,
AsyncHistoryWithStreamingResponse,
)
from .alerting import (
Alerting,
Expand All @@ -16,14 +16,56 @@
AlertingWithStreamingResponse,
AsyncAlertingWithStreamingResponse,
)
from .policies import (
Policies,
AsyncPolicies,
PoliciesWithRawResponse,
AsyncPoliciesWithRawResponse,
PoliciesWithStreamingResponse,
AsyncPoliciesWithStreamingResponse,
)
from .destinations import (
Destinations,
AsyncDestinations,
DestinationsWithRawResponse,
AsyncDestinationsWithRawResponse,
DestinationsWithStreamingResponse,
AsyncDestinationsWithStreamingResponse,
)
from .available_alerts import (
AvailableAlerts,
AsyncAvailableAlerts,
AvailableAlertsWithRawResponse,
AsyncAvailableAlertsWithRawResponse,
AvailableAlertsWithStreamingResponse,
AsyncAvailableAlertsWithStreamingResponse,
)

__all__ = [
"V3",
"AsyncV3",
"V3WithRawResponse",
"AsyncV3WithRawResponse",
"V3WithStreamingResponse",
"AsyncV3WithStreamingResponse",
"AvailableAlerts",
"AsyncAvailableAlerts",
"AvailableAlertsWithRawResponse",
"AsyncAvailableAlertsWithRawResponse",
"AvailableAlertsWithStreamingResponse",
"AsyncAvailableAlertsWithStreamingResponse",
"Destinations",
"AsyncDestinations",
"DestinationsWithRawResponse",
"AsyncDestinationsWithRawResponse",
"DestinationsWithStreamingResponse",
"AsyncDestinationsWithStreamingResponse",
"History",
"AsyncHistory",
"HistoryWithRawResponse",
"AsyncHistoryWithRawResponse",
"HistoryWithStreamingResponse",
"AsyncHistoryWithStreamingResponse",
"Policies",
"AsyncPolicies",
"PoliciesWithRawResponse",
"AsyncPoliciesWithRawResponse",
"PoliciesWithStreamingResponse",
"AsyncPoliciesWithStreamingResponse",
"Alerting",
"AsyncAlerting",
"AlertingWithRawResponse",
Expand Down
Loading