Skip to content

Commit 74a1948

Browse files
feat: Revert "Merge branch 'davis/PINGORA-2658' into 'main'"
* Revert "Merge branch 'davis/PINGORA-2658' into 'main'" This reverts commit e71f7c74338feb7150bc02073c6388c858f26a2c, reversing changes made to a79ce8c6eb978242ae43f8573dfa301f6db8fea8.
1 parent 5d16fdb commit 74a1948

21 files changed

Lines changed: 2 additions & 4000 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1813
1+
configured_endpoints: 1805
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ce29bb4c09f3e3c876e1e8b81eb906c5e7f67b64fb93a33ce0da077e5ea8b298.yml
33
openapi_spec_hash: b6dc5fd68aacf92d20b450d094bec054
4-
config_hash: 4c75fdd4e6c8d378c37f02c0284b8efb
4+
config_hash: ef25992ffd3781a5431e52894b6c6405

api.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,34 +2097,6 @@ Methods:
20972097
- <code title="put /zones/{zone_id}/rate_limits/{rate_limit_id}">client.rate_limits.<a href="./src/cloudflare/resources/rate_limits.py">edit</a>(rate_limit_id, \*, zone_id, \*\*<a href="src/cloudflare/types/rate_limits/rate_limit_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/rate_limits/rate_limit.py">RateLimit</a></code>
20982098
- <code title="get /zones/{zone_id}/rate_limits/{rate_limit_id}">client.rate_limits.<a href="./src/cloudflare/resources/rate_limits.py">get</a>(rate_limit_id, \*, zone_id) -> <a href="./src/cloudflare/types/rate_limits/rate_limit.py">RateLimit</a></code>
20992099

2100-
# SmartShield
2101-
2102-
Types:
2103-
2104-
```python
2105-
from cloudflare.types.smart_shield import (
2106-
SmartShieldUpdateResponse,
2107-
SmartShieldCreateHealthcheckResponse,
2108-
SmartShieldDeleteHealthcheckResponse,
2109-
SmartShieldEditHealthcheckResponse,
2110-
SmartShieldGetResponse,
2111-
SmartShieldGetHealthcheckResponse,
2112-
SmartShieldListHealthchecksResponse,
2113-
SmartShieldUpdateHealthcheckResponse,
2114-
)
2115-
```
2116-
2117-
Methods:
2118-
2119-
- <code title="patch /zones/{zone_id}/smart_shield">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/smart_shield/smart_shield_update_params.py">params</a>) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_update_response.py">SmartShieldUpdateResponse</a></code>
2120-
- <code title="post /zones/{zone_id}/smart_shield/healthchecks">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">create_healthcheck</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/smart_shield/smart_shield_create_healthcheck_params.py">params</a>) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_create_healthcheck_response.py">SmartShieldCreateHealthcheckResponse</a></code>
2121-
- <code title="delete /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">delete_healthcheck</a>(healthcheck_id, \*, zone_id) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_delete_healthcheck_response.py">SmartShieldDeleteHealthcheckResponse</a></code>
2122-
- <code title="patch /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">edit_healthcheck</a>(healthcheck_id, \*, zone_id, \*\*<a href="src/cloudflare/types/smart_shield/smart_shield_edit_healthcheck_params.py">params</a>) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_edit_healthcheck_response.py">SmartShieldEditHealthcheckResponse</a></code>
2123-
- <code title="get /zones/{zone_id}/smart_shield">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_get_response.py">SmartShieldGetResponse</a></code>
2124-
- <code title="get /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">get_healthcheck</a>(healthcheck_id, \*, zone_id) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_get_healthcheck_response.py">SmartShieldGetHealthcheckResponse</a></code>
2125-
- <code title="get /zones/{zone_id}/smart_shield/healthchecks">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">list_healthchecks</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/smart_shield/smart_shield_list_healthchecks_params.py">params</a>) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_list_healthchecks_response.py">SyncV4PagePaginationArray[SmartShieldListHealthchecksResponse]</a></code>
2126-
- <code title="put /zones/{zone_id}/smart_shield/healthchecks/{healthcheck_id}">client.smart_shield.<a href="./src/cloudflare/resources/smart_shield.py">update_healthcheck</a>(healthcheck_id, \*, zone_id, \*\*<a href="src/cloudflare/types/smart_shield/smart_shield_update_healthcheck_params.py">params</a>) -> <a href="./src/cloudflare/types/smart_shield/smart_shield_update_healthcheck_response.py">SmartShieldUpdateHealthcheckResponse</a></code>
2127-
21282100
# WaitingRooms
21292101

21302102
Types:

src/cloudflare/_client.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
dns_firewall,
9393
healthchecks,
9494
security_txt,
95-
smart_shield,
9695
abuse_reports,
9796
email_routing,
9897
magic_transit,
@@ -160,7 +159,6 @@
160159
from .resources.zones.zones import ZonesResource, AsyncZonesResource
161160
from .resources.custom_pages import CustomPagesResource, AsyncCustomPagesResource
162161
from .resources.security_txt import SecurityTXTResource, AsyncSecurityTXTResource
163-
from .resources.smart_shield import SmartShieldResource, AsyncSmartShieldResource
164162
from .resources.abuse_reports import AbuseReportsResource, AsyncAbuseReportsResource
165163
from .resources.images.images import ImagesResource, AsyncImagesResource
166164
from .resources.queues.queues import QueuesResource, AsyncQueuesResource
@@ -517,12 +515,6 @@ def rate_limits(self) -> RateLimitsResource:
517515

518516
return RateLimitsResource(self)
519517

520-
@cached_property
521-
def smart_shield(self) -> SmartShieldResource:
522-
from .resources.smart_shield import SmartShieldResource
523-
524-
return SmartShieldResource(self)
525-
526518
@cached_property
527519
def waiting_rooms(self) -> WaitingRoomsResource:
528520
from .resources.waiting_rooms import WaitingRoomsResource
@@ -1349,12 +1341,6 @@ def rate_limits(self) -> AsyncRateLimitsResource:
13491341

13501342
return AsyncRateLimitsResource(self)
13511343

1352-
@cached_property
1353-
def smart_shield(self) -> AsyncSmartShieldResource:
1354-
from .resources.smart_shield import AsyncSmartShieldResource
1355-
1356-
return AsyncSmartShieldResource(self)
1357-
13581344
@cached_property
13591345
def waiting_rooms(self) -> AsyncWaitingRoomsResource:
13601346
from .resources.waiting_rooms import AsyncWaitingRoomsResource
@@ -2109,12 +2095,6 @@ def rate_limits(self) -> rate_limits.RateLimitsResourceWithRawResponse:
21092095

21102096
return RateLimitsResourceWithRawResponse(self._client.rate_limits)
21112097

2112-
@cached_property
2113-
def smart_shield(self) -> smart_shield.SmartShieldResourceWithRawResponse:
2114-
from .resources.smart_shield import SmartShieldResourceWithRawResponse
2115-
2116-
return SmartShieldResourceWithRawResponse(self._client.smart_shield)
2117-
21182098
@cached_property
21192099
def waiting_rooms(self) -> waiting_rooms.WaitingRoomsResourceWithRawResponse:
21202100
from .resources.waiting_rooms import WaitingRoomsResourceWithRawResponse
@@ -2688,12 +2668,6 @@ def rate_limits(self) -> rate_limits.AsyncRateLimitsResourceWithRawResponse:
26882668

26892669
return AsyncRateLimitsResourceWithRawResponse(self._client.rate_limits)
26902670

2691-
@cached_property
2692-
def smart_shield(self) -> smart_shield.AsyncSmartShieldResourceWithRawResponse:
2693-
from .resources.smart_shield import AsyncSmartShieldResourceWithRawResponse
2694-
2695-
return AsyncSmartShieldResourceWithRawResponse(self._client.smart_shield)
2696-
26972671
@cached_property
26982672
def waiting_rooms(self) -> waiting_rooms.AsyncWaitingRoomsResourceWithRawResponse:
26992673
from .resources.waiting_rooms import AsyncWaitingRoomsResourceWithRawResponse
@@ -3267,12 +3241,6 @@ def rate_limits(self) -> rate_limits.RateLimitsResourceWithStreamingResponse:
32673241

32683242
return RateLimitsResourceWithStreamingResponse(self._client.rate_limits)
32693243

3270-
@cached_property
3271-
def smart_shield(self) -> smart_shield.SmartShieldResourceWithStreamingResponse:
3272-
from .resources.smart_shield import SmartShieldResourceWithStreamingResponse
3273-
3274-
return SmartShieldResourceWithStreamingResponse(self._client.smart_shield)
3275-
32763244
@cached_property
32773245
def waiting_rooms(self) -> waiting_rooms.WaitingRoomsResourceWithStreamingResponse:
32783246
from .resources.waiting_rooms import WaitingRoomsResourceWithStreamingResponse
@@ -3848,12 +3816,6 @@ def rate_limits(self) -> rate_limits.AsyncRateLimitsResourceWithStreamingRespons
38483816

38493817
return AsyncRateLimitsResourceWithStreamingResponse(self._client.rate_limits)
38503818

3851-
@cached_property
3852-
def smart_shield(self) -> smart_shield.AsyncSmartShieldResourceWithStreamingResponse:
3853-
from .resources.smart_shield import AsyncSmartShieldResourceWithStreamingResponse
3854-
3855-
return AsyncSmartShieldResourceWithStreamingResponse(self._client.smart_shield)
3856-
38573819
@cached_property
38583820
def waiting_rooms(self) -> waiting_rooms.AsyncWaitingRoomsResourceWithStreamingResponse:
38593821
from .resources.waiting_rooms import AsyncWaitingRoomsResourceWithStreamingResponse

0 commit comments

Comments
 (0)