@@ -142,6 +142,25 @@ func (r *ThreatEventService) Edit(ctx context.Context, eventID string, params Th
142142 return
143143}
144144
145+ // This Method is deprecated. Please use
146+ // /events/dataset/:dataset_id/events/:event_id instead.
147+ //
148+ // Deprecated: deprecated
149+ func (r * ThreatEventService ) Get (ctx context.Context , eventID string , query ThreatEventGetParams , opts ... option.RequestOption ) (res * ThreatEventGetResponse , err error ) {
150+ opts = slices .Concat (r .Options , opts )
151+ if query .AccountID .Value == "" {
152+ err = errors .New ("missing required account_id parameter" )
153+ return
154+ }
155+ if eventID == "" {
156+ err = errors .New ("missing required event_id parameter" )
157+ return
158+ }
159+ path := fmt .Sprintf ("accounts/%s/cloudforce-one/events/%s" , query .AccountID , eventID )
160+ err = requestconfig .ExecuteNewRequest (ctx , http .MethodGet , path , nil , & res , opts ... )
161+ return
162+ }
163+
145164type ThreatEventNewResponse struct {
146165 Attacker string `json:"attacker,required"`
147166 AttackerCountry string `json:"attackerCountry,required"`
@@ -364,6 +383,73 @@ func (r threatEventEditResponseJSON) RawJSON() string {
364383 return r .raw
365384}
366385
386+ type ThreatEventGetResponse struct {
387+ Attacker string `json:"attacker,required"`
388+ AttackerCountry string `json:"attackerCountry,required"`
389+ Category string `json:"category,required"`
390+ Date string `json:"date,required"`
391+ Event string `json:"event,required"`
392+ Indicator string `json:"indicator,required"`
393+ IndicatorType string `json:"indicatorType,required"`
394+ IndicatorTypeID float64 `json:"indicatorTypeId,required"`
395+ KillChain float64 `json:"killChain,required"`
396+ MitreAttack []string `json:"mitreAttack,required"`
397+ NumReferenced float64 `json:"numReferenced,required"`
398+ NumReferences float64 `json:"numReferences,required"`
399+ RawID string `json:"rawId,required"`
400+ Referenced []string `json:"referenced,required"`
401+ ReferencedIDs []float64 `json:"referencedIds,required"`
402+ References []string `json:"references,required"`
403+ ReferencesIDs []float64 `json:"referencesIds,required"`
404+ Tags []string `json:"tags,required"`
405+ TargetCountry string `json:"targetCountry,required"`
406+ TargetIndustry string `json:"targetIndustry,required"`
407+ TLP string `json:"tlp,required"`
408+ UUID string `json:"uuid,required"`
409+ Insight string `json:"insight"`
410+ ReleasabilityID string `json:"releasabilityId"`
411+ JSON threatEventGetResponseJSON `json:"-"`
412+ }
413+
414+ // threatEventGetResponseJSON contains the JSON metadata for the struct
415+ // [ThreatEventGetResponse]
416+ type threatEventGetResponseJSON struct {
417+ Attacker apijson.Field
418+ AttackerCountry apijson.Field
419+ Category apijson.Field
420+ Date apijson.Field
421+ Event apijson.Field
422+ Indicator apijson.Field
423+ IndicatorType apijson.Field
424+ IndicatorTypeID apijson.Field
425+ KillChain apijson.Field
426+ MitreAttack apijson.Field
427+ NumReferenced apijson.Field
428+ NumReferences apijson.Field
429+ RawID apijson.Field
430+ Referenced apijson.Field
431+ ReferencedIDs apijson.Field
432+ References apijson.Field
433+ ReferencesIDs apijson.Field
434+ Tags apijson.Field
435+ TargetCountry apijson.Field
436+ TargetIndustry apijson.Field
437+ TLP apijson.Field
438+ UUID apijson.Field
439+ Insight apijson.Field
440+ ReleasabilityID apijson.Field
441+ raw string
442+ ExtraFields map [string ]apijson.Field
443+ }
444+
445+ func (r * ThreatEventGetResponse ) UnmarshalJSON (data []byte ) (err error ) {
446+ return apijson .UnmarshalRoot (data , r )
447+ }
448+
449+ func (r threatEventGetResponseJSON ) RawJSON () string {
450+ return r .raw
451+ }
452+
367453type ThreatEventNewParams struct {
368454 // Account ID.
369455 PathAccountID param.Field [string ] `path:"account_id,required"`
@@ -566,3 +652,8 @@ type ThreatEventEditParamsRaw struct {
566652func (r ThreatEventEditParamsRaw ) MarshalJSON () (data []byte , err error ) {
567653 return apijson .MarshalRoot (r )
568654}
655+
656+ type ThreatEventGetParams struct {
657+ // Account ID.
658+ AccountID param.Field [string ] `path:"account_id,required"`
659+ }
0 commit comments