Skip to content

Commit e96350d

Browse files
feat: feat(email_security): Add API to do bulk message movements and quarantine releases
* feat(email_security): Add API to do bulk message movements and quarantine releases
1 parent 583042b commit e96350d

23 files changed

Lines changed: 2653 additions & 3 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2412
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-aea449e729e8f21233664cd0c798c1be0f085fa8c6f3f09d4106a9e2a8a91ceb.yml
1+
configured_endpoints: 2418
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-390a1858f30b8d927f55b608de32c0af9117819b1b17ef35376447cd537b91ae.yml
33
openapi_spec_hash: bacabcf09c5206d41639afc39af8f2ac
4-
config_hash: a23f4c71ccd6c6117c24f63ae415dcf7
4+
config_hash: cd80863b2a094f3805409e4a5676b0b8

src/cloudflare/resources/email_security/api.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,50 @@ Methods:
9393

9494
- <code title="post /accounts/{account_id}/email-security/investigate/release">client.email_security.investigate.release.<a href="./src/cloudflare/resources/email_security/investigate/release.py">bulk</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/investigate/release_bulk_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/investigate/release_bulk_response.py">SyncSinglePage[ReleaseBulkResponse]</a></code>
9595

96+
### Bulk
97+
98+
Types:
99+
100+
```python
101+
from cloudflare.types.email_security.investigate import (
102+
BulkCreateResponse,
103+
BulkListResponse,
104+
BulkDeleteResponse,
105+
BulkGetResponse,
106+
)
107+
```
108+
109+
Methods:
110+
111+
- <code title="post /accounts/{account_id}/email-security/investigate/bulk">client.email_security.investigate.bulk.<a href="./src/cloudflare/resources/email_security/investigate/bulk/bulk.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/investigate/bulk_create_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/investigate/bulk_create_response.py">BulkCreateResponse</a></code>
112+
- <code title="get /accounts/{account_id}/email-security/investigate/bulk">client.email_security.investigate.bulk.<a href="./src/cloudflare/resources/email_security/investigate/bulk/bulk.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/investigate/bulk_list_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/investigate/bulk_list_response.py">SyncV4PagePaginationArray[BulkListResponse]</a></code>
113+
- <code title="delete /accounts/{account_id}/email-security/investigate/bulk/{job_id}">client.email_security.investigate.bulk.<a href="./src/cloudflare/resources/email_security/investigate/bulk/bulk.py">delete</a>(job_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/investigate/bulk_delete_response.py">BulkDeleteResponse</a></code>
114+
- <code title="get /accounts/{account_id}/email-security/investigate/bulk/{job_id}">client.email_security.investigate.bulk.<a href="./src/cloudflare/resources/email_security/investigate/bulk/bulk.py">get</a>(job_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/investigate/bulk_get_response.py">BulkGetResponse</a></code>
115+
116+
#### Cancel
117+
118+
Types:
119+
120+
```python
121+
from cloudflare.types.email_security.investigate.bulk import CancelCreateResponse
122+
```
123+
124+
Methods:
125+
126+
- <code title="post /accounts/{account_id}/email-security/investigate/bulk/{job_id}/cancel">client.email_security.investigate.bulk.cancel.<a href="./src/cloudflare/resources/email_security/investigate/bulk/cancel.py">create</a>(job_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/investigate/bulk/cancel_create_response.py">CancelCreateResponse</a></code>
127+
128+
#### Messages
129+
130+
Types:
131+
132+
```python
133+
from cloudflare.types.email_security.investigate.bulk import MessageListResponse
134+
```
135+
136+
Methods:
137+
138+
- <code title="get /accounts/{account_id}/email-security/investigate/bulk/{job_id}/messages">client.email_security.investigate.bulk.messages.<a href="./src/cloudflare/resources/email_security/investigate/bulk/messages.py">list</a>(job_id, \*, account_id, \*\*<a href="src/cloudflare/types/email_security/investigate/bulk/message_list_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/investigate/bulk/message_list_response.py">SyncV4PagePaginationArray[MessageListResponse]</a></code>
139+
96140
## Phishguard
97141

98142
### Reports

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
RawResourceWithStreamingResponse,
99
AsyncRawResourceWithStreamingResponse,
1010
)
11+
from .bulk import (
12+
BulkResource,
13+
AsyncBulkResource,
14+
BulkResourceWithRawResponse,
15+
AsyncBulkResourceWithRawResponse,
16+
BulkResourceWithStreamingResponse,
17+
AsyncBulkResourceWithStreamingResponse,
18+
)
1119
from .move import (
1220
MoveResource,
1321
AsyncMoveResource,
@@ -108,6 +116,12 @@
108116
"AsyncReleaseResourceWithRawResponse",
109117
"ReleaseResourceWithStreamingResponse",
110118
"AsyncReleaseResourceWithStreamingResponse",
119+
"BulkResource",
120+
"AsyncBulkResource",
121+
"BulkResourceWithRawResponse",
122+
"AsyncBulkResourceWithRawResponse",
123+
"BulkResourceWithStreamingResponse",
124+
"AsyncBulkResourceWithStreamingResponse",
111125
"InvestigateResource",
112126
"AsyncInvestigateResource",
113127
"InvestigateResourceWithRawResponse",
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .bulk import (
4+
BulkResource,
5+
AsyncBulkResource,
6+
BulkResourceWithRawResponse,
7+
AsyncBulkResourceWithRawResponse,
8+
BulkResourceWithStreamingResponse,
9+
AsyncBulkResourceWithStreamingResponse,
10+
)
11+
from .cancel import (
12+
CancelResource,
13+
AsyncCancelResource,
14+
CancelResourceWithRawResponse,
15+
AsyncCancelResourceWithRawResponse,
16+
CancelResourceWithStreamingResponse,
17+
AsyncCancelResourceWithStreamingResponse,
18+
)
19+
from .messages import (
20+
MessagesResource,
21+
AsyncMessagesResource,
22+
MessagesResourceWithRawResponse,
23+
AsyncMessagesResourceWithRawResponse,
24+
MessagesResourceWithStreamingResponse,
25+
AsyncMessagesResourceWithStreamingResponse,
26+
)
27+
28+
__all__ = [
29+
"CancelResource",
30+
"AsyncCancelResource",
31+
"CancelResourceWithRawResponse",
32+
"AsyncCancelResourceWithRawResponse",
33+
"CancelResourceWithStreamingResponse",
34+
"AsyncCancelResourceWithStreamingResponse",
35+
"MessagesResource",
36+
"AsyncMessagesResource",
37+
"MessagesResourceWithRawResponse",
38+
"AsyncMessagesResourceWithRawResponse",
39+
"MessagesResourceWithStreamingResponse",
40+
"AsyncMessagesResourceWithStreamingResponse",
41+
"BulkResource",
42+
"AsyncBulkResource",
43+
"BulkResourceWithRawResponse",
44+
"AsyncBulkResourceWithRawResponse",
45+
"BulkResourceWithStreamingResponse",
46+
"AsyncBulkResourceWithStreamingResponse",
47+
]

0 commit comments

Comments
 (0)