3
3
package cloudforce_one
4
4
5
5
import (
6
- "context"
7
- "fmt"
8
- "net/http"
9
-
10
- "github.com/cloudflare/cloudflare-go/v4/internal/apijson"
11
- "github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
12
6
"github.com/cloudflare/cloudflare-go/v4/option"
13
7
)
14
8
@@ -30,55 +24,3 @@ func NewThreatEventAttackerService(opts ...option.RequestOption) (r *ThreatEvent
30
24
r .Options = opts
31
25
return
32
26
}
33
-
34
- // Lists attackers
35
- func (r * ThreatEventAttackerService ) List (ctx context.Context , accountID float64 , opts ... option.RequestOption ) (res * ThreatEventAttackerListResponse , err error ) {
36
- opts = append (r .Options [:], opts ... )
37
- path := fmt .Sprintf ("accounts/%v/cloudforce-one/events/attackers" , accountID )
38
- err = requestconfig .ExecuteNewRequest (ctx , http .MethodGet , path , nil , & res , opts ... )
39
- return
40
- }
41
-
42
- type ThreatEventAttackerListResponse struct {
43
- Items ThreatEventAttackerListResponseItems `json:"items,required"`
44
- Type string `json:"type,required"`
45
- JSON threatEventAttackerListResponseJSON `json:"-"`
46
- }
47
-
48
- // threatEventAttackerListResponseJSON contains the JSON metadata for the struct
49
- // [ThreatEventAttackerListResponse]
50
- type threatEventAttackerListResponseJSON struct {
51
- Items apijson.Field
52
- Type apijson.Field
53
- raw string
54
- ExtraFields map [string ]apijson.Field
55
- }
56
-
57
- func (r * ThreatEventAttackerListResponse ) UnmarshalJSON (data []byte ) (err error ) {
58
- return apijson .UnmarshalRoot (data , r )
59
- }
60
-
61
- func (r threatEventAttackerListResponseJSON ) RawJSON () string {
62
- return r .raw
63
- }
64
-
65
- type ThreatEventAttackerListResponseItems struct {
66
- Type string `json:"type,required"`
67
- JSON threatEventAttackerListResponseItemsJSON `json:"-"`
68
- }
69
-
70
- // threatEventAttackerListResponseItemsJSON contains the JSON metadata for the
71
- // struct [ThreatEventAttackerListResponseItems]
72
- type threatEventAttackerListResponseItemsJSON struct {
73
- Type apijson.Field
74
- raw string
75
- ExtraFields map [string ]apijson.Field
76
- }
77
-
78
- func (r * ThreatEventAttackerListResponseItems ) UnmarshalJSON (data []byte ) (err error ) {
79
- return apijson .UnmarshalRoot (data , r )
80
- }
81
-
82
- func (r threatEventAttackerListResponseItemsJSON ) RawJSON () string {
83
- return r .raw
84
- }
0 commit comments