Skip to content

Commit 764b4ea

Browse files
feat(api): api update
1 parent b922a42 commit 764b4ea

File tree

3 files changed

+6
-68
lines changed

3 files changed

+6
-68
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4fd98a6315cb1b94edd2d2df35e2465c746911b41e1d86f1fba52d3e6d0be815.yml
3-
openapi_spec_hash: 340470e070a8cc8c8f384adb719444d1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6032d4dce84efd134480df9d7b9bd707dedead4b87d517a9e3457c188c94f1a3.yml
3+
openapi_spec_hash: 5402c67ce10fff73b2fc27137c2ee436
44
config_hash: cce40d4d65a4d67d5df957a75a15b567

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def bulk_create(
419419
options=make_request_options(
420420
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
421421
),
422-
cast_to=ThreatEventBulkCreateResponse,
422+
cast_to=float,
423423
)
424424

425425
def edit(
@@ -816,7 +816,7 @@ async def bulk_create(
816816
options=make_request_options(
817817
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
818818
),
819-
cast_to=ThreatEventBulkCreateResponse,
819+
cast_to=float,
820820
)
821821

822822
async def edit(
Lines changed: 2 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List, Optional
43
from typing_extensions import TypeAlias
54

6-
from pydantic import Field as FieldInfo
5+
__all__ = ["ThreatEventBulkCreateResponse"]
76

8-
from ..._models import BaseModel
9-
10-
__all__ = ["ThreatEventBulkCreateResponse", "ThreatEventBulkCreateResponseItem"]
11-
12-
13-
class ThreatEventBulkCreateResponseItem(BaseModel):
14-
id: float
15-
16-
account_id: float = FieldInfo(alias="accountId")
17-
18-
attacker: str
19-
20-
attacker_country: str = FieldInfo(alias="attackerCountry")
21-
22-
category: str
23-
24-
category_id: float = FieldInfo(alias="categoryId")
25-
26-
date: str
27-
28-
event: str
29-
30-
indicator: str
31-
32-
indicator_type: str = FieldInfo(alias="indicatorType")
33-
34-
indicator_type_id: float = FieldInfo(alias="indicatorTypeId")
35-
36-
kill_chain: float = FieldInfo(alias="killChain")
37-
38-
mitre_attack: List[str] = FieldInfo(alias="mitreAttack")
39-
40-
num_referenced: float = FieldInfo(alias="numReferenced")
41-
42-
num_references: float = FieldInfo(alias="numReferences")
43-
44-
raw_id: str = FieldInfo(alias="rawId")
45-
46-
referenced: List[str]
47-
48-
referenced_ids: List[float] = FieldInfo(alias="referencedIds")
49-
50-
references: List[str]
51-
52-
references_ids: List[float] = FieldInfo(alias="referencesIds")
53-
54-
tags: List[str]
55-
56-
target_country: str = FieldInfo(alias="targetCountry")
57-
58-
target_industry: str = FieldInfo(alias="targetIndustry")
59-
60-
tlp: str
61-
62-
uuid: str
63-
64-
insight: Optional[str] = None
65-
66-
releasability_id: Optional[str] = FieldInfo(alias="releasabilityId", default=None)
67-
68-
69-
ThreatEventBulkCreateResponse: TypeAlias = List[ThreatEventBulkCreateResponseItem]
7+
ThreatEventBulkCreateResponse: TypeAlias = float

0 commit comments

Comments
 (0)