Skip to content

Commit 6810580

Browse files
feat: feat: add organization audit logs endpoint
* feat: add organization audit logs endpoint
1 parent 4e50276 commit 6810580

12 files changed

Lines changed: 1168 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2193
1+
configured_endpoints: 2194
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ce49e6bb0d3819f135b9a567b661205fdf5df21cff157eab2b7abd7b5b50347.yml
33
openapi_spec_hash: 512a5bb3a32860590c8949765605d65a
4-
config_hash: 2aa7cda7b46036ca25bef2140c1127a9
4+
config_hash: 5367ae3e3a9a0d6578c2756965a99e3a

src/cloudflare/resources/organizations/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from .logs import (
4+
LogsResource,
5+
AsyncLogsResource,
6+
LogsResourceWithRawResponse,
7+
AsyncLogsResourceWithRawResponse,
8+
LogsResourceWithStreamingResponse,
9+
AsyncLogsResourceWithStreamingResponse,
10+
)
311
from .organizations import (
412
OrganizationsResource,
513
AsyncOrganizationsResource,
@@ -24,6 +32,12 @@
2432
"AsyncOrganizationProfileResourceWithRawResponse",
2533
"OrganizationProfileResourceWithStreamingResponse",
2634
"AsyncOrganizationProfileResourceWithStreamingResponse",
35+
"LogsResource",
36+
"AsyncLogsResource",
37+
"LogsResourceWithRawResponse",
38+
"AsyncLogsResourceWithRawResponse",
39+
"LogsResourceWithStreamingResponse",
40+
"AsyncLogsResourceWithStreamingResponse",
2741
"OrganizationsResource",
2842
"AsyncOrganizationsResource",
2943
"OrganizationsResourceWithRawResponse",

src/cloudflare/resources/organizations/api.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,17 @@ Methods:
2626

2727
- <code title="put /organizations/{organization_id}/profile">client.organizations.organization_profile.<a href="./src/cloudflare/resources/organizations/organization_profile.py">update</a>(organization_id, \*\*<a href="src/cloudflare/types/organizations/organization_profile_update_params.py">params</a>) -> None</code>
2828
- <code title="get /organizations/{organization_id}/profile">client.organizations.organization_profile.<a href="./src/cloudflare/resources/organizations/organization_profile.py">get</a>(organization_id) -> Result</code>
29+
30+
## Logs
31+
32+
### Audit
33+
34+
Types:
35+
36+
```python
37+
from cloudflare.types.organizations.logs import AuditListResponse
38+
```
39+
40+
Methods:
41+
42+
- <code title="get /organizations/{organization_id}/logs/audit">client.organizations.logs.audit.<a href="./src/cloudflare/resources/organizations/logs/audit.py">list</a>(organization_id, \*\*<a href="src/cloudflare/types/organizations/logs/audit_list_params.py">params</a>) -> <a href="./src/cloudflare/types/organizations/logs/audit_list_response.py">SyncCursorPaginationAfter[AuditListResponse]</a></code>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .logs import (
4+
LogsResource,
5+
AsyncLogsResource,
6+
LogsResourceWithRawResponse,
7+
AsyncLogsResourceWithRawResponse,
8+
LogsResourceWithStreamingResponse,
9+
AsyncLogsResourceWithStreamingResponse,
10+
)
11+
from .audit import (
12+
AuditResource,
13+
AsyncAuditResource,
14+
AuditResourceWithRawResponse,
15+
AsyncAuditResourceWithRawResponse,
16+
AuditResourceWithStreamingResponse,
17+
AsyncAuditResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"AuditResource",
22+
"AsyncAuditResource",
23+
"AuditResourceWithRawResponse",
24+
"AsyncAuditResourceWithRawResponse",
25+
"AuditResourceWithStreamingResponse",
26+
"AsyncAuditResourceWithStreamingResponse",
27+
"LogsResource",
28+
"AsyncLogsResource",
29+
"LogsResourceWithRawResponse",
30+
"AsyncLogsResourceWithRawResponse",
31+
"LogsResourceWithStreamingResponse",
32+
"AsyncLogsResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)