Skip to content

Commit e25cf5d

Browse files
feat: feat(abuse_reports): add abuse mitigations in Client API
1 parent 6737d33 commit e25cf5d

File tree

6 files changed

+553
-3
lines changed

6 files changed

+553
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1900
1+
configured_endpoints: 1902
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aa2c3728465401b156b0ae35cb80cfef39ae398866f7b44b52dba8dd04d7df0c.yml
33
openapi_spec_hash: afffe386ef9475dfec98d1c26d8225d4
4-
config_hash: 002f3cbea44c410d7ee7e31fa9b0058a
4+
config_hash: c3197a7cf9595a0f252f8810e74954ef

abuse_reports/abusereport.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ import (
2828
// automatically. You should not instantiate this service directly, and instead use
2929
// the [NewAbuseReportService] method instead.
3030
type AbuseReportService struct {
31-
Options []option.RequestOption
31+
Options []option.RequestOption
32+
Mitigations *MitigationService
3233
}
3334

3435
// NewAbuseReportService generates a new service that applies the given options to
@@ -37,6 +38,7 @@ type AbuseReportService struct {
3738
func NewAbuseReportService(opts ...option.RequestOption) (r *AbuseReportService) {
3839
r = &AbuseReportService{}
3940
r.Options = opts
41+
r.Mitigations = NewMitigationService(opts...)
4042
return
4143
}
4244

0 commit comments

Comments
 (0)