Skip to content

Commit bfd27f8

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#2170)
1 parent 94403aa commit bfd27f8

27 files changed

+15
-2408
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1417
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4c49562d088783434a838d9fb04f3a71514aaf0ee9096dabf65e3ae0825b8756.yml
1+
configured_endpoints: 1411
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d8a11058191753bacee9c070940904a1318942d364a2420ad1e253bd450b2bcf.yml

api.md

-34
Original file line numberDiff line numberDiff line change
@@ -1193,42 +1193,8 @@ Methods:
11931193
- <code title="get /accounts/{account_id}/email-security/investigate/{postfix_id}/raw">client.email_security.investigate.<a href="./src/cloudflare/resources/email_security/investigate.py">raw</a>(postfix_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/investigate_raw_response.py">InvestigateRawResponse</a></code>
11941194
- <code title="get /accounts/{account_id}/email-security/investigate/{postfix_id}/trace">client.email_security.investigate.<a href="./src/cloudflare/resources/email_security/investigate.py">trace</a>(postfix_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/investigate_trace_response.py">InvestigateTraceResponse</a></code>
11951195

1196-
## Phishguard
1197-
1198-
Types:
1199-
1200-
```python
1201-
from cloudflare.types.email_security import PhishguardListResponse
1202-
```
1203-
1204-
Methods:
1205-
1206-
- <code title="get /accounts/{account_id}/email-security/phishguard/reports">client.email_security.phishguard.<a href="./src/cloudflare/resources/email_security/phishguard.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/phishguard_list_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/phishguard_list_response.py">SyncSinglePage[PhishguardListResponse]</a></code>
1207-
12081196
## Settings
12091197

1210-
### AllowPatterns
1211-
1212-
Types:
1213-
1214-
```python
1215-
from cloudflare.types.email_security.settings import (
1216-
AllowPatternCreateResponse,
1217-
AllowPatternListResponse,
1218-
AllowPatternDeleteResponse,
1219-
AllowPatternEditResponse,
1220-
AllowPatternGetResponse,
1221-
)
1222-
```
1223-
1224-
Methods:
1225-
1226-
- <code title="post /accounts/{account_id}/email-security/settings/allow_patterns">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/allow_pattern_create_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_create_response.py">AllowPatternCreateResponse</a></code>
1227-
- <code title="get /accounts/{account_id}/email-security/settings/allow_patterns">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/allow_pattern_list_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_list_response.py">SyncV4PagePaginationArray[AllowPatternListResponse]</a></code>
1228-
- <code title="delete /accounts/{account_id}/email-security/settings/allow_patterns/{pattern_id}">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">delete</a>(pattern_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_delete_response.py">AllowPatternDeleteResponse</a></code>
1229-
- <code title="patch /accounts/{account_id}/email-security/settings/allow_patterns/{pattern_id}">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">edit</a>(pattern_id, \*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/allow_pattern_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_edit_response.py">AllowPatternEditResponse</a></code>
1230-
- <code title="get /accounts/{account_id}/email-security/settings/allow_patterns/{pattern_id}">client.email_security.settings.allow_patterns.<a href="./src/cloudflare/resources/email_security/settings/allow_patterns.py">get</a>(pattern_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/settings/allow_pattern_get_response.py">AllowPatternGetResponse</a></code>
1231-
12321198
### BlockSenders
12331199

12341200
Types:

src/cloudflare/resources/email_security/__init__.py

-14
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
SettingsResourceWithStreamingResponse,
99
AsyncSettingsResourceWithStreamingResponse,
1010
)
11-
from .phishguard import (
12-
PhishguardResource,
13-
AsyncPhishguardResource,
14-
PhishguardResourceWithRawResponse,
15-
AsyncPhishguardResourceWithRawResponse,
16-
PhishguardResourceWithStreamingResponse,
17-
AsyncPhishguardResourceWithStreamingResponse,
18-
)
1911
from .investigate import (
2012
InvestigateResource,
2113
AsyncInvestigateResource,
@@ -40,12 +32,6 @@
4032
"AsyncInvestigateResourceWithRawResponse",
4133
"InvestigateResourceWithStreamingResponse",
4234
"AsyncInvestigateResourceWithStreamingResponse",
43-
"PhishguardResource",
44-
"AsyncPhishguardResource",
45-
"PhishguardResourceWithRawResponse",
46-
"AsyncPhishguardResourceWithRawResponse",
47-
"PhishguardResourceWithStreamingResponse",
48-
"AsyncPhishguardResourceWithStreamingResponse",
4935
"SettingsResource",
5036
"AsyncSettingsResource",
5137
"SettingsResourceWithRawResponse",

src/cloudflare/resources/email_security/email_security.py

-32
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
AsyncSettingsResourceWithStreamingResponse,
1212
)
1313
from ..._compat import cached_property
14-
from .phishguard import (
15-
PhishguardResource,
16-
AsyncPhishguardResource,
17-
PhishguardResourceWithRawResponse,
18-
AsyncPhishguardResourceWithRawResponse,
19-
PhishguardResourceWithStreamingResponse,
20-
AsyncPhishguardResourceWithStreamingResponse,
21-
)
2214
from ..._resource import SyncAPIResource, AsyncAPIResource
2315
from .investigate import (
2416
InvestigateResource,
@@ -38,10 +30,6 @@ class EmailSecurityResource(SyncAPIResource):
3830
def investigate(self) -> InvestigateResource:
3931
return InvestigateResource(self._client)
4032

41-
@cached_property
42-
def phishguard(self) -> PhishguardResource:
43-
return PhishguardResource(self._client)
44-
4533
@cached_property
4634
def settings(self) -> SettingsResource:
4735
return SettingsResource(self._client)
@@ -71,10 +59,6 @@ class AsyncEmailSecurityResource(AsyncAPIResource):
7159
def investigate(self) -> AsyncInvestigateResource:
7260
return AsyncInvestigateResource(self._client)
7361

74-
@cached_property
75-
def phishguard(self) -> AsyncPhishguardResource:
76-
return AsyncPhishguardResource(self._client)
77-
7862
@cached_property
7963
def settings(self) -> AsyncSettingsResource:
8064
return AsyncSettingsResource(self._client)
@@ -107,10 +91,6 @@ def __init__(self, email_security: EmailSecurityResource) -> None:
10791
def investigate(self) -> InvestigateResourceWithRawResponse:
10892
return InvestigateResourceWithRawResponse(self._email_security.investigate)
10993

110-
@cached_property
111-
def phishguard(self) -> PhishguardResourceWithRawResponse:
112-
return PhishguardResourceWithRawResponse(self._email_security.phishguard)
113-
11494
@cached_property
11595
def settings(self) -> SettingsResourceWithRawResponse:
11696
return SettingsResourceWithRawResponse(self._email_security.settings)
@@ -124,10 +104,6 @@ def __init__(self, email_security: AsyncEmailSecurityResource) -> None:
124104
def investigate(self) -> AsyncInvestigateResourceWithRawResponse:
125105
return AsyncInvestigateResourceWithRawResponse(self._email_security.investigate)
126106

127-
@cached_property
128-
def phishguard(self) -> AsyncPhishguardResourceWithRawResponse:
129-
return AsyncPhishguardResourceWithRawResponse(self._email_security.phishguard)
130-
131107
@cached_property
132108
def settings(self) -> AsyncSettingsResourceWithRawResponse:
133109
return AsyncSettingsResourceWithRawResponse(self._email_security.settings)
@@ -141,10 +117,6 @@ def __init__(self, email_security: EmailSecurityResource) -> None:
141117
def investigate(self) -> InvestigateResourceWithStreamingResponse:
142118
return InvestigateResourceWithStreamingResponse(self._email_security.investigate)
143119

144-
@cached_property
145-
def phishguard(self) -> PhishguardResourceWithStreamingResponse:
146-
return PhishguardResourceWithStreamingResponse(self._email_security.phishguard)
147-
148120
@cached_property
149121
def settings(self) -> SettingsResourceWithStreamingResponse:
150122
return SettingsResourceWithStreamingResponse(self._email_security.settings)
@@ -158,10 +130,6 @@ def __init__(self, email_security: AsyncEmailSecurityResource) -> None:
158130
def investigate(self) -> AsyncInvestigateResourceWithStreamingResponse:
159131
return AsyncInvestigateResourceWithStreamingResponse(self._email_security.investigate)
160132

161-
@cached_property
162-
def phishguard(self) -> AsyncPhishguardResourceWithStreamingResponse:
163-
return AsyncPhishguardResourceWithStreamingResponse(self._email_security.phishguard)
164-
165133
@cached_property
166134
def settings(self) -> AsyncSettingsResourceWithStreamingResponse:
167135
return AsyncSettingsResourceWithStreamingResponse(self._email_security.settings)

src/cloudflare/resources/email_security/phishguard.py

-199
This file was deleted.

src/cloudflare/resources/email_security/settings/__init__.py

-14
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@
2424
BlockSendersResourceWithStreamingResponse,
2525
AsyncBlockSendersResourceWithStreamingResponse,
2626
)
27-
from .allow_patterns import (
28-
AllowPatternsResource,
29-
AsyncAllowPatternsResource,
30-
AllowPatternsResourceWithRawResponse,
31-
AsyncAllowPatternsResourceWithRawResponse,
32-
AllowPatternsResourceWithStreamingResponse,
33-
AsyncAllowPatternsResourceWithStreamingResponse,
34-
)
3527
from .trusted_domains import (
3628
TrustedDomainsResource,
3729
AsyncTrustedDomainsResource,
@@ -50,12 +42,6 @@
5042
)
5143

5244
__all__ = [
53-
"AllowPatternsResource",
54-
"AsyncAllowPatternsResource",
55-
"AllowPatternsResourceWithRawResponse",
56-
"AsyncAllowPatternsResourceWithRawResponse",
57-
"AllowPatternsResourceWithStreamingResponse",
58-
"AsyncAllowPatternsResourceWithStreamingResponse",
5945
"BlockSendersResource",
6046
"AsyncBlockSendersResource",
6147
"BlockSendersResourceWithRawResponse",

0 commit comments

Comments
 (0)