Skip to content

Commit 0f87157

Browse files
chore(api): update composite API spec
1 parent d6049bf commit 0f87157

File tree

469 files changed

+16487
-16085
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

469 files changed

+16487
-16085
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1912
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cc732ca8d1d7f1c11a1ee579060ddfd8f953a3ad94fd5053056b53370129d040.yml
3-
openapi_spec_hash: a3e1e833dfe13845abd1e2227993a979
1+
configured_endpoints: 1875
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e425e4abe3f3161feed50a8cd861dd25c6ec32ee162b4eb4d225c4e5cb7b3ca9.yml
3+
openapi_spec_hash: 955676955a801dbe5084d8ffe2730791
44
config_hash: e4fdda880afe9a26b032ec5128e42dc2

api.md

Lines changed: 80 additions & 251 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
bot_management,
104104
cloudforce_one,
105105
dcv_delegation,
106-
email_security,
107106
load_balancers,
108107
cloud_connector,
109108
durable_objects,
@@ -208,7 +207,6 @@
208207
from .resources.secrets_store.secrets_store import SecretsStoreResource, AsyncSecretsStoreResource
209208
from .resources.waiting_rooms.waiting_rooms import WaitingRoomsResource, AsyncWaitingRoomsResource
210209
from .resources.cloudforce_one.cloudforce_one import CloudforceOneResource, AsyncCloudforceOneResource
211-
from .resources.email_security.email_security import EmailSecurityResource, AsyncEmailSecurityResource
212210
from .resources.load_balancers.load_balancers import LoadBalancersResource, AsyncLoadBalancersResource
213211
from .resources.origin_post_quantum_encryption import (
214212
OriginPostQuantumEncryptionResource,
@@ -463,12 +461,6 @@ def dns(self) -> DNSResource:
463461

464462
return DNSResource(self)
465463

466-
@cached_property
467-
def email_security(self) -> EmailSecurityResource:
468-
from .resources.email_security import EmailSecurityResource
469-
470-
return EmailSecurityResource(self)
471-
472464
@cached_property
473465
def email_routing(self) -> EmailRoutingResource:
474466
from .resources.email_routing import EmailRoutingResource
@@ -1313,12 +1305,6 @@ def dns(self) -> AsyncDNSResource:
13131305

13141306
return AsyncDNSResource(self)
13151307

1316-
@cached_property
1317-
def email_security(self) -> AsyncEmailSecurityResource:
1318-
from .resources.email_security import AsyncEmailSecurityResource
1319-
1320-
return AsyncEmailSecurityResource(self)
1321-
13221308
@cached_property
13231309
def email_routing(self) -> AsyncEmailRoutingResource:
13241310
from .resources.email_routing import AsyncEmailRoutingResource
@@ -2091,12 +2077,6 @@ def dns(self) -> dns.DNSResourceWithRawResponse:
20912077

20922078
return DNSResourceWithRawResponse(self._client.dns)
20932079

2094-
@cached_property
2095-
def email_security(self) -> email_security.EmailSecurityResourceWithRawResponse:
2096-
from .resources.email_security import EmailSecurityResourceWithRawResponse
2097-
2098-
return EmailSecurityResourceWithRawResponse(self._client.email_security)
2099-
21002080
@cached_property
21012081
def email_routing(self) -> email_routing.EmailRoutingResourceWithRawResponse:
21022082
from .resources.email_routing import EmailRoutingResourceWithRawResponse
@@ -2688,12 +2668,6 @@ def dns(self) -> dns.AsyncDNSResourceWithRawResponse:
26882668

26892669
return AsyncDNSResourceWithRawResponse(self._client.dns)
26902670

2691-
@cached_property
2692-
def email_security(self) -> email_security.AsyncEmailSecurityResourceWithRawResponse:
2693-
from .resources.email_security import AsyncEmailSecurityResourceWithRawResponse
2694-
2695-
return AsyncEmailSecurityResourceWithRawResponse(self._client.email_security)
2696-
26972671
@cached_property
26982672
def email_routing(self) -> email_routing.AsyncEmailRoutingResourceWithRawResponse:
26992673
from .resources.email_routing import AsyncEmailRoutingResourceWithRawResponse
@@ -3285,12 +3259,6 @@ def dns(self) -> dns.DNSResourceWithStreamingResponse:
32853259

32863260
return DNSResourceWithStreamingResponse(self._client.dns)
32873261

3288-
@cached_property
3289-
def email_security(self) -> email_security.EmailSecurityResourceWithStreamingResponse:
3290-
from .resources.email_security import EmailSecurityResourceWithStreamingResponse
3291-
3292-
return EmailSecurityResourceWithStreamingResponse(self._client.email_security)
3293-
32943262
@cached_property
32953263
def email_routing(self) -> email_routing.EmailRoutingResourceWithStreamingResponse:
32963264
from .resources.email_routing import EmailRoutingResourceWithStreamingResponse
@@ -3884,12 +3852,6 @@ def dns(self) -> dns.AsyncDNSResourceWithStreamingResponse:
38843852

38853853
return AsyncDNSResourceWithStreamingResponse(self._client.dns)
38863854

3887-
@cached_property
3888-
def email_security(self) -> email_security.AsyncEmailSecurityResourceWithStreamingResponse:
3889-
from .resources.email_security import AsyncEmailSecurityResourceWithStreamingResponse
3890-
3891-
return AsyncEmailSecurityResourceWithStreamingResponse(self._client.email_security)
3892-
38933855
@cached_property
38943856
def email_routing(self) -> email_routing.AsyncEmailRoutingResourceWithStreamingResponse:
38953857
from .resources.email_routing import AsyncEmailRoutingResourceWithStreamingResponse

src/cloudflare/resources/accounts/logs/audit.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def list(
5252
account_id: str,
5353
before: Union[str, date],
5454
since: Union[str, date],
55+
id: audit_list_params.ID | Omit = omit,
5556
account_name: audit_list_params.AccountName | Omit = omit,
5657
action_result: audit_list_params.ActionResult | Omit = omit,
5758
action_type: audit_list_params.ActionType | Omit = omit,
@@ -62,7 +63,6 @@ def list(
6263
actor_token_id: audit_list_params.ActorTokenID | Omit = omit,
6364
actor_token_name: audit_list_params.ActorTokenName | Omit = omit,
6465
actor_type: audit_list_params.ActorType | Omit = omit,
65-
audit_log_id: audit_list_params.AuditLogID | Omit = omit,
6666
cursor: str | Omit = omit,
6767
direction: Literal["desc", "asc"] | Omit = omit,
6868
limit: float | Omit = omit,
@@ -134,6 +134,7 @@ def list(
134134
{
135135
"before": before,
136136
"since": since,
137+
"id": id,
137138
"account_name": account_name,
138139
"action_result": action_result,
139140
"action_type": action_type,
@@ -144,7 +145,6 @@ def list(
144145
"actor_token_id": actor_token_id,
145146
"actor_token_name": actor_token_name,
146147
"actor_type": actor_type,
147-
"audit_log_id": audit_log_id,
148148
"cursor": cursor,
149149
"direction": direction,
150150
"limit": limit,
@@ -192,6 +192,7 @@ def list(
192192
account_id: str,
193193
before: Union[str, date],
194194
since: Union[str, date],
195+
id: audit_list_params.ID | Omit = omit,
195196
account_name: audit_list_params.AccountName | Omit = omit,
196197
action_result: audit_list_params.ActionResult | Omit = omit,
197198
action_type: audit_list_params.ActionType | Omit = omit,
@@ -202,7 +203,6 @@ def list(
202203
actor_token_id: audit_list_params.ActorTokenID | Omit = omit,
203204
actor_token_name: audit_list_params.ActorTokenName | Omit = omit,
204205
actor_type: audit_list_params.ActorType | Omit = omit,
205-
audit_log_id: audit_list_params.AuditLogID | Omit = omit,
206206
cursor: str | Omit = omit,
207207
direction: Literal["desc", "asc"] | Omit = omit,
208208
limit: float | Omit = omit,
@@ -274,6 +274,7 @@ def list(
274274
{
275275
"before": before,
276276
"since": since,
277+
"id": id,
277278
"account_name": account_name,
278279
"action_result": action_result,
279280
"action_type": action_type,
@@ -284,7 +285,6 @@ def list(
284285
"actor_token_id": actor_token_id,
285286
"actor_token_name": actor_token_name,
286287
"actor_type": actor_type,
287-
"audit_log_id": audit_log_id,
288288
"cursor": cursor,
289289
"direction": direction,
290290
"limit": limit,

src/cloudflare/resources/cloudforce_one/threat_events/threat_events.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,15 @@ def create(
183183
category: str,
184184
date: Union[str, datetime],
185185
event: str,
186-
indicator_type: str,
187186
raw: threat_event_create_params.Raw,
188187
tlp: str,
189188
body_account_id: float | Omit = omit,
190189
attacker: Optional[str] | Omit = omit,
191190
attacker_country: str | Omit = omit,
192191
dataset_id: str | Omit = omit,
193192
indicator: str | Omit = omit,
193+
indicators: Iterable[threat_event_create_params.Indicator] | Omit = omit,
194+
indicator_type: str | Omit = omit,
194195
insight: str | Omit = omit,
195196
tags: SequenceNotStr[str] | Omit = omit,
196197
target_country: str | Omit = omit,
@@ -211,6 +212,9 @@ def create(
211212
Args:
212213
path_account_id: Account ID.
213214
215+
indicators: Array of indicators for this event. Supports multiple indicators per event for
216+
complex scenarios.
217+
214218
extra_headers: Send extra headers
215219
216220
extra_query: Add additional query parameters to the request
@@ -228,14 +232,15 @@ def create(
228232
"category": category,
229233
"date": date,
230234
"event": event,
231-
"indicator_type": indicator_type,
232235
"raw": raw,
233236
"tlp": tlp,
234237
"body_account_id": body_account_id,
235238
"attacker": attacker,
236239
"attacker_country": attacker_country,
237240
"dataset_id": dataset_id,
238241
"indicator": indicator,
242+
"indicators": indicators,
243+
"indicator_type": indicator_type,
239244
"insight": insight,
240245
"tags": tags,
241246
"target_country": target_country,
@@ -582,14 +587,15 @@ async def create(
582587
category: str,
583588
date: Union[str, datetime],
584589
event: str,
585-
indicator_type: str,
586590
raw: threat_event_create_params.Raw,
587591
tlp: str,
588592
body_account_id: float | Omit = omit,
589593
attacker: Optional[str] | Omit = omit,
590594
attacker_country: str | Omit = omit,
591595
dataset_id: str | Omit = omit,
592596
indicator: str | Omit = omit,
597+
indicators: Iterable[threat_event_create_params.Indicator] | Omit = omit,
598+
indicator_type: str | Omit = omit,
593599
insight: str | Omit = omit,
594600
tags: SequenceNotStr[str] | Omit = omit,
595601
target_country: str | Omit = omit,
@@ -610,6 +616,9 @@ async def create(
610616
Args:
611617
path_account_id: Account ID.
612618
619+
indicators: Array of indicators for this event. Supports multiple indicators per event for
620+
complex scenarios.
621+
613622
extra_headers: Send extra headers
614623
615624
extra_query: Add additional query parameters to the request
@@ -627,14 +636,15 @@ async def create(
627636
"category": category,
628637
"date": date,
629638
"event": event,
630-
"indicator_type": indicator_type,
631639
"raw": raw,
632640
"tlp": tlp,
633641
"body_account_id": body_account_id,
634642
"attacker": attacker,
635643
"attacker_country": attacker_country,
636644
"dataset_id": dataset_id,
637645
"indicator": indicator,
646+
"indicators": indicators,
647+
"indicator_type": indicator_type,
638648
"insight": insight,
639649
"tags": tags,
640650
"target_country": target_country,

src/cloudflare/resources/email_security/__init__.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)