Skip to content

Commit

Permalink
feat(api): api update (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 6, 2024
1 parent 0d7e314 commit fe787a3
Show file tree
Hide file tree
Showing 111 changed files with 13,209 additions and 274 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1361
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-bc0b27a6ed686a5f7ea5742498072a682dae635643c49cea95a3e5292868faa3.yml
configured_endpoints: 1397
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d7ac42a96dd2d1679005f853c1c4c29034e362c73f2d75ad004d948ad8abfb74.yml
154 changes: 133 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 @@ -326,6 +328,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 @@ -368,6 +376,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 @@ -1079,6 +1093,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 @@ -1121,6 +1141,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 @@ -1765,6 +1791,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 @@ -1807,6 +1839,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 @@ -2272,6 +2310,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 @@ -2314,6 +2358,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 @@ -2779,6 +2829,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 @@ -2821,6 +2877,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 @@ -3288,6 +3350,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 @@ -3330,6 +3398,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

0 comments on commit fe787a3

Please sign in to comment.