Skip to content

Commit 57fe307

Browse files
feat(api): api update
1 parent 3403ae5 commit 57fe307

File tree

4 files changed

+492
-14
lines changed

4 files changed

+492
-14
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: 1807
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c42047fbab361b401a0b1c4e34f370b0131ace1fbd5c158ca49e14380902b0f2.yml
3-
openapi_spec_hash: 673783dfb96f15bec51a6b2952b10286
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9549aa97ab624d772eb415b46e62ee1e4566f98225b0646bb71ed9401aba5258.yml
3+
openapi_spec_hash: 30239dd700a4535babaca0dc86118d23
44
config_hash: 9f61e9f02b675e373b140471d52b670c

cloudforce_one/threatevent.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ type ThreatEventNewParams struct {
427427
AttackerCountry param.Field[string] `json:"attackerCountry"`
428428
DatasetID param.Field[string] `json:"datasetId"`
429429
Indicator param.Field[string] `json:"indicator"`
430+
IndicatorType param.Field[string] `json:"indicatorType"`
430431
Tags param.Field[[]string] `json:"tags"`
431432
TargetCountry param.Field[string] `json:"targetCountry"`
432433
TargetIndustry param.Field[string] `json:"targetIndustry"`
@@ -563,6 +564,7 @@ type ThreatEventBulkNewParamsData struct {
563564
AttackerCountry param.Field[string] `json:"attackerCountry"`
564565
DatasetID param.Field[string] `json:"datasetId"`
565566
Indicator param.Field[string] `json:"indicator"`
567+
IndicatorType param.Field[string] `json:"indicatorType"`
566568
Tags param.Field[[]string] `json:"tags"`
567569
TargetCountry param.Field[string] `json:"targetCountry"`
568570
TargetIndustry param.Field[string] `json:"targetIndustry"`

cloudforce_one/threatevent_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func TestThreatEventNewWithOptionalParams(t *testing.T) {
4848
AttackerCountry: cloudflare.F("CN"),
4949
DatasetID: cloudflare.F("durableObjectName"),
5050
Indicator: cloudflare.F("domain.com"),
51+
IndicatorType: cloudflare.F("domain"),
5152
Tags: cloudflare.F([]string{"malware"}),
5253
TargetCountry: cloudflare.F("US"),
5354
TargetIndustry: cloudflare.F("Agriculture"),
@@ -161,6 +162,7 @@ func TestThreatEventBulkNew(t *testing.T) {
161162
AttackerCountry: cloudflare.F("CN"),
162163
DatasetID: cloudflare.F("durableObjectName"),
163164
Indicator: cloudflare.F("domain.com"),
165+
IndicatorType: cloudflare.F("domain"),
164166
Tags: cloudflare.F([]string{"malware"}),
165167
TargetCountry: cloudflare.F("US"),
166168
TargetIndustry: cloudflare.F("Agriculture"),

0 commit comments

Comments
 (0)