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 #2184

Merged
merged 1 commit into from
Nov 20, 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
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1408
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9482a52799bf82c48325ec6462f86b2c70ade8214816411c9b104620ac94f73e.yml
configured_endpoints: 1448
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-46a81b24a8d697e3c5a31b8d3d7342a90e5af1e669ff4e463a6809cf6cb03771.yml
136 changes: 115 additions & 21 deletions api.md

Large diffs are not rendered by default.

74 changes: 74 additions & 0 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
queues,
stream,
billing,
filters,
logpush,
storage,
workers,
Expand All @@ -87,6 +88,7 @@
diagnostics,
memberships,
page_shield,
rate_limits,
url_scanner,
healthchecks,
security_txt,
Expand Down Expand Up @@ -327,6 +329,12 @@ def email_routing(self) -> email_routing.EmailRoutingResource:

return EmailRoutingResource(self)

@cached_property
def filters(self) -> filters.FiltersResource:
from .resources.filters import FiltersResource

return FiltersResource(self)

@cached_property
def firewall(self) -> firewall.FirewallResource:
from .resources.firewall import FirewallResource
Expand Down Expand Up @@ -369,6 +377,12 @@ def pagerules(self) -> pagerules.PagerulesResource:

return PagerulesResource(self)

@cached_property
def rate_limits(self) -> rate_limits.RateLimitsResource:
from .resources.rate_limits import RateLimitsResource

return RateLimitsResource(self)

@cached_property
def secondary_dns(self) -> secondary_dns.SecondaryDNSResource:
from .resources.secondary_dns import SecondaryDNSResource
Expand Down Expand Up @@ -1086,6 +1100,12 @@ def email_routing(self) -> email_routing.AsyncEmailRoutingResource:

return AsyncEmailRoutingResource(self)

@cached_property
def filters(self) -> filters.AsyncFiltersResource:
from .resources.filters import AsyncFiltersResource

return AsyncFiltersResource(self)

@cached_property
def firewall(self) -> firewall.AsyncFirewallResource:
from .resources.firewall import AsyncFirewallResource
Expand Down Expand Up @@ -1128,6 +1148,12 @@ def pagerules(self) -> pagerules.AsyncPagerulesResource:

return AsyncPagerulesResource(self)

@cached_property
def rate_limits(self) -> rate_limits.AsyncRateLimitsResource:
from .resources.rate_limits import AsyncRateLimitsResource

return AsyncRateLimitsResource(self)

@cached_property
def secondary_dns(self) -> secondary_dns.AsyncSecondaryDNSResource:
from .resources.secondary_dns import AsyncSecondaryDNSResource
Expand Down Expand Up @@ -1778,6 +1804,12 @@ def email_routing(self) -> email_routing.EmailRoutingResourceWithRawResponse:

return EmailRoutingResourceWithRawResponse(self._client.email_routing)

@cached_property
def filters(self) -> filters.FiltersResourceWithRawResponse:
from .resources.filters import FiltersResourceWithRawResponse

return FiltersResourceWithRawResponse(self._client.filters)

@cached_property
def firewall(self) -> firewall.FirewallResourceWithRawResponse:
from .resources.firewall import FirewallResourceWithRawResponse
Expand Down Expand Up @@ -1820,6 +1852,12 @@ def pagerules(self) -> pagerules.PagerulesResourceWithRawResponse:

return PagerulesResourceWithRawResponse(self._client.pagerules)

@cached_property
def rate_limits(self) -> rate_limits.RateLimitsResourceWithRawResponse:
from .resources.rate_limits import RateLimitsResourceWithRawResponse

return RateLimitsResourceWithRawResponse(self._client.rate_limits)

@cached_property
def secondary_dns(self) -> secondary_dns.SecondaryDNSResourceWithRawResponse:
from .resources.secondary_dns import SecondaryDNSResourceWithRawResponse
Expand Down Expand Up @@ -2291,6 +2329,12 @@ def email_routing(self) -> email_routing.AsyncEmailRoutingResourceWithRawRespons

return AsyncEmailRoutingResourceWithRawResponse(self._client.email_routing)

@cached_property
def filters(self) -> filters.AsyncFiltersResourceWithRawResponse:
from .resources.filters import AsyncFiltersResourceWithRawResponse

return AsyncFiltersResourceWithRawResponse(self._client.filters)

@cached_property
def firewall(self) -> firewall.AsyncFirewallResourceWithRawResponse:
from .resources.firewall import AsyncFirewallResourceWithRawResponse
Expand Down Expand Up @@ -2333,6 +2377,12 @@ def pagerules(self) -> pagerules.AsyncPagerulesResourceWithRawResponse:

return AsyncPagerulesResourceWithRawResponse(self._client.pagerules)

@cached_property
def rate_limits(self) -> rate_limits.AsyncRateLimitsResourceWithRawResponse:
from .resources.rate_limits import AsyncRateLimitsResourceWithRawResponse

return AsyncRateLimitsResourceWithRawResponse(self._client.rate_limits)

@cached_property
def secondary_dns(self) -> secondary_dns.AsyncSecondaryDNSResourceWithRawResponse:
from .resources.secondary_dns import AsyncSecondaryDNSResourceWithRawResponse
Expand Down Expand Up @@ -2804,6 +2854,12 @@ def email_routing(self) -> email_routing.EmailRoutingResourceWithStreamingRespon

return EmailRoutingResourceWithStreamingResponse(self._client.email_routing)

@cached_property
def filters(self) -> filters.FiltersResourceWithStreamingResponse:
from .resources.filters import FiltersResourceWithStreamingResponse

return FiltersResourceWithStreamingResponse(self._client.filters)

@cached_property
def firewall(self) -> firewall.FirewallResourceWithStreamingResponse:
from .resources.firewall import FirewallResourceWithStreamingResponse
Expand Down Expand Up @@ -2846,6 +2902,12 @@ def pagerules(self) -> pagerules.PagerulesResourceWithStreamingResponse:

return PagerulesResourceWithStreamingResponse(self._client.pagerules)

@cached_property
def rate_limits(self) -> rate_limits.RateLimitsResourceWithStreamingResponse:
from .resources.rate_limits import RateLimitsResourceWithStreamingResponse

return RateLimitsResourceWithStreamingResponse(self._client.rate_limits)

@cached_property
def secondary_dns(self) -> secondary_dns.SecondaryDNSResourceWithStreamingResponse:
from .resources.secondary_dns import SecondaryDNSResourceWithStreamingResponse
Expand Down Expand Up @@ -3319,6 +3381,12 @@ def email_routing(self) -> email_routing.AsyncEmailRoutingResourceWithStreamingR

return AsyncEmailRoutingResourceWithStreamingResponse(self._client.email_routing)

@cached_property
def filters(self) -> filters.AsyncFiltersResourceWithStreamingResponse:
from .resources.filters import AsyncFiltersResourceWithStreamingResponse

return AsyncFiltersResourceWithStreamingResponse(self._client.filters)

@cached_property
def firewall(self) -> firewall.AsyncFirewallResourceWithStreamingResponse:
from .resources.firewall import AsyncFirewallResourceWithStreamingResponse
Expand Down Expand Up @@ -3361,6 +3429,12 @@ def pagerules(self) -> pagerules.AsyncPagerulesResourceWithStreamingResponse:

return AsyncPagerulesResourceWithStreamingResponse(self._client.pagerules)

@cached_property
def rate_limits(self) -> rate_limits.AsyncRateLimitsResourceWithStreamingResponse:
from .resources.rate_limits import AsyncRateLimitsResourceWithStreamingResponse

return AsyncRateLimitsResourceWithStreamingResponse(self._client.rate_limits)

@cached_property
def secondary_dns(self) -> secondary_dns.AsyncSecondaryDNSResourceWithStreamingResponse:
from .resources.secondary_dns import AsyncSecondaryDNSResourceWithStreamingResponse
Expand Down
Loading