Skip to content

Commit b607779

Browse files
feat(api): api update
1 parent 6b146d6 commit b607779

2 files changed

Lines changed: 14 additions & 12 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: 1782
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63dee2ea2074a05a12be2424a90cf07824a344d76f5d36a9a92628475f04865b.yml
3-
openapi_spec_hash: 8b479e1bea4edb1322399d8c0b87d755
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-40c07ef8632f57de126ee942ec6fb7825531ead759a525f0818d1f857e7df689.yml
3+
openapi_spec_hash: 439492f25df369220720aa93f8a61ad5
44
config_hash: eda5b3d9487ce675d1fadf88153b457d

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ def create(
213213
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
214214
) -> ThreatEventCreateResponse:
215215
"""
216-
Events must be created in a client-specific dataset, which means the `datasetId`
217-
parameter must be defined. To create a dataset, see the
216+
To create a dataset, see the
218217
[`Create Dataset`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/create/)
219-
endpoint.
218+
endpoint. When `datasetId` parameter is unspecified, it will be created in a
219+
default dataset named `Cloudforce One Threat Events`.
220220
221221
Args:
222222
path_account_id: Account ID.
@@ -277,8 +277,9 @@ def list(
277277
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
278278
) -> ThreatEventListResponse:
279279
"""
280-
The `datasetId` must be defined (to list existing datasets (and their IDs), use
281-
the
280+
When `datasetId` is unspecified, events will be listed from the
281+
`Cloudforce One Threat Events` dataset. To list existing datasets (and their
282+
IDs), use the
282283
[`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/)
283284
endpoint). Also, must provide query parameters.
284285
@@ -610,10 +611,10 @@ async def create(
610611
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
611612
) -> ThreatEventCreateResponse:
612613
"""
613-
Events must be created in a client-specific dataset, which means the `datasetId`
614-
parameter must be defined. To create a dataset, see the
614+
To create a dataset, see the
615615
[`Create Dataset`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/create/)
616-
endpoint.
616+
endpoint. When `datasetId` parameter is unspecified, it will be created in a
617+
default dataset named `Cloudforce One Threat Events`.
617618
618619
Args:
619620
path_account_id: Account ID.
@@ -674,8 +675,9 @@ async def list(
674675
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
675676
) -> ThreatEventListResponse:
676677
"""
677-
The `datasetId` must be defined (to list existing datasets (and their IDs), use
678-
the
678+
When `datasetId` is unspecified, events will be listed from the
679+
`Cloudforce One Threat Events` dataset. To list existing datasets (and their
680+
IDs), use the
679681
[`List Datasets`](https://developers.cloudflare.com/api/resources/cloudforce_one/subresources/threat_events/subresources/datasets/methods/list/)
680682
endpoint). Also, must provide query parameters.
681683

0 commit comments

Comments
 (0)