Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 64ed733

Browse files
committedMar 13, 2025
feat(api): api update (#4016)
1 parent 86cdbd4 commit 64ed733

26 files changed

+2
-3147
lines changed
 

‎.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1607
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1e03eea03ffa0feca80d75c25a852d387715013862f462994401ec5ce046ea37.yml
1+
configured_endpoints: 1575
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-174238e5ec345934190363770c743612f454cba1f708d87bb2cf5ba857fcc422.yml

‎api.md

-136
Large diffs are not rendered by default.

‎cloudforce_one/threatevent.go

-462
Large diffs are not rendered by default.

‎cloudforce_one/threatevent_test.go

-204
This file was deleted.

‎cloudforce_one/threateventattacker.go

-58
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
package cloudforce_one
44

55
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"
126
"github.com/cloudflare/cloudflare-go/v4/option"
137
)
148

@@ -30,55 +24,3 @@ func NewThreatEventAttackerService(opts ...option.RequestOption) (r *ThreatEvent
3024
r.Options = opts
3125
return
3226
}
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-
}

‎cloudforce_one/threateventattacker_test.go

-37
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.