Skip to content

Commit 2282740

Browse files
feat(api): api update
1 parent 913e107 commit 2282740

4 files changed

Lines changed: 10 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 @@
11
configured_endpoints: 1809
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ae0f90b3a9e78788d77d466bf53f1a2c57743de1afd2ac9768f8fa1e1b14a067.yml
3-
openapi_spec_hash: 225f19b0ebaef22cdfc627d4bfacdeec
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77d61495fecd0d26b9adff1af0ab3510b06a3cc2c6781b9a40aabcad2f10588a.yml
3+
openapi_spec_hash: 95dee3be411dda77306a41dc7d49eb35
44
config_hash: 9f61e9f02b675e373b140471d52b670c

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ def edit(
422422
date: Union[str, datetime] | NotGiven = NOT_GIVEN,
423423
event: str | NotGiven = NOT_GIVEN,
424424
indicator: str | NotGiven = NOT_GIVEN,
425+
indicator_type: str | NotGiven = NOT_GIVEN,
425426
insight: str | NotGiven = NOT_GIVEN,
426427
raw: threat_event_edit_params.Raw | NotGiven = NOT_GIVEN,
427428
target_country: str | NotGiven = NOT_GIVEN,
@@ -464,6 +465,7 @@ def edit(
464465
"date": date,
465466
"event": event,
466467
"indicator": indicator,
468+
"indicator_type": indicator_type,
467469
"insight": insight,
468470
"raw": raw,
469471
"target_country": target_country,
@@ -818,6 +820,7 @@ async def edit(
818820
date: Union[str, datetime] | NotGiven = NOT_GIVEN,
819821
event: str | NotGiven = NOT_GIVEN,
820822
indicator: str | NotGiven = NOT_GIVEN,
823+
indicator_type: str | NotGiven = NOT_GIVEN,
821824
insight: str | NotGiven = NOT_GIVEN,
822825
raw: threat_event_edit_params.Raw | NotGiven = NOT_GIVEN,
823826
target_country: str | NotGiven = NOT_GIVEN,
@@ -860,6 +863,7 @@ async def edit(
860863
"date": date,
861864
"event": event,
862865
"indicator": indicator,
866+
"indicator_type": indicator_type,
863867
"insight": insight,
864868
"raw": raw,
865869
"target_country": target_country,

src/cloudflare/types/cloudforce_one/threat_event_edit_params.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class ThreatEventEditParams(TypedDict, total=False):
2727

2828
indicator: str
2929

30+
indicator_type: Annotated[str, PropertyInfo(alias="indicatorType")]
31+
3032
insight: str
3133

3234
raw: Raw

tests/api_resources/cloudforce_one/test_threat_events.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
331331
date=parse_datetime("2022-04-01T00:00:00Z"),
332332
event="An attacker registered the domain domain.com",
333333
indicator="domain2.com",
334+
indicator_type="domain",
334335
insight="new insight",
335336
raw={
336337
"data": {"foo": "bar"},
@@ -750,6 +751,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
750751
date=parse_datetime("2022-04-01T00:00:00Z"),
751752
event="An attacker registered the domain domain.com",
752753
indicator="domain2.com",
754+
indicator_type="domain",
753755
insight="new insight",
754756
raw={
755757
"data": {"foo": "bar"},

0 commit comments

Comments
 (0)