Skip to content

Commit a91a512

Browse files
feat(brand_protection): Add new routes
1 parent 57198f8 commit a91a512

File tree

7 files changed

+122
-2
lines changed

7 files changed

+122
-2
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1761
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b5f6a17157fe19892f8737208ed142c4d431d81cfe0d13bedc16a8213cc58f32.yml
33
openapi_spec_hash: 956f10079edd2cb55bd255500a85ccb3
4-
config_hash: 1d47998f5beedb88688bf4a0e549b14b
4+
config_hash: 150f1595200b5d085e0c40682eb2010b

api.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3178,6 +3178,14 @@ Methods:
31783178
- <code title="post /accounts/{account_id}/brand-protection/submit">client.BrandProtection.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection#BrandProtectionService.Submit">Submit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection">brand_protection</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection#BrandProtectionSubmitParams">BrandProtectionSubmitParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection">brand_protection</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection#Submit">Submit</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
31793179
- <code title="get /accounts/{account_id}/brand-protection/url-info">client.BrandProtection.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection#BrandProtectionService.URLInfo">URLInfo</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection">brand_protection</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection#BrandProtectionURLInfoParams">BrandProtectionURLInfoParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection">brand_protection</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4/brand_protection#Info">Info</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
31803180

3181+
## Queries
3182+
3183+
## Matches
3184+
3185+
## Logos
3186+
3187+
## LogoMatches
3188+
31813189
# Diagnostics
31823190

31833191
## Traceroutes

brand_protection/brandprotection.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ import (
2323
// automatically. You should not instantiate this service directly, and instead use
2424
// the [NewBrandProtectionService] method instead.
2525
type BrandProtectionService struct {
26-
Options []option.RequestOption
26+
Options []option.RequestOption
27+
Queries *QueryService
28+
Matches *MatchService
29+
Logos *LogoService
30+
LogoMatches *LogoMatchService
2731
}
2832

2933
// NewBrandProtectionService generates a new service that applies the given options
@@ -32,6 +36,10 @@ type BrandProtectionService struct {
3236
func NewBrandProtectionService(opts ...option.RequestOption) (r *BrandProtectionService) {
3337
r = &BrandProtectionService{}
3438
r.Options = opts
39+
r.Queries = NewQueryService(opts...)
40+
r.Matches = NewMatchService(opts...)
41+
r.Logos = NewLogoService(opts...)
42+
r.LogoMatches = NewLogoMatchService(opts...)
3543
return
3644
}
3745

brand_protection/logo.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
package brand_protection
4+
5+
import (
6+
"github.com/cloudflare/cloudflare-go/v4/option"
7+
)
8+
9+
// LogoService contains methods and other services that help with interacting with
10+
// the cloudflare API.
11+
//
12+
// Note, unlike clients, this service does not read variables from the environment
13+
// automatically. You should not instantiate this service directly, and instead use
14+
// the [NewLogoService] method instead.
15+
type LogoService struct {
16+
Options []option.RequestOption
17+
}
18+
19+
// NewLogoService generates a new service that applies the given options to each
20+
// request. These options are applied after the parent client's options (if there
21+
// is one), and before any request-specific options.
22+
func NewLogoService(opts ...option.RequestOption) (r *LogoService) {
23+
r = &LogoService{}
24+
r.Options = opts
25+
return
26+
}

brand_protection/logomatch.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
package brand_protection
4+
5+
import (
6+
"github.com/cloudflare/cloudflare-go/v4/option"
7+
)
8+
9+
// LogoMatchService contains methods and other services that help with interacting
10+
// with the cloudflare API.
11+
//
12+
// Note, unlike clients, this service does not read variables from the environment
13+
// automatically. You should not instantiate this service directly, and instead use
14+
// the [NewLogoMatchService] method instead.
15+
type LogoMatchService struct {
16+
Options []option.RequestOption
17+
}
18+
19+
// NewLogoMatchService generates a new service that applies the given options to
20+
// each request. These options are applied after the parent client's options (if
21+
// there is one), and before any request-specific options.
22+
func NewLogoMatchService(opts ...option.RequestOption) (r *LogoMatchService) {
23+
r = &LogoMatchService{}
24+
r.Options = opts
25+
return
26+
}

brand_protection/match.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
package brand_protection
4+
5+
import (
6+
"github.com/cloudflare/cloudflare-go/v4/option"
7+
)
8+
9+
// MatchService contains methods and other services that help with interacting with
10+
// the cloudflare API.
11+
//
12+
// Note, unlike clients, this service does not read variables from the environment
13+
// automatically. You should not instantiate this service directly, and instead use
14+
// the [NewMatchService] method instead.
15+
type MatchService struct {
16+
Options []option.RequestOption
17+
}
18+
19+
// NewMatchService generates a new service that applies the given options to each
20+
// request. These options are applied after the parent client's options (if there
21+
// is one), and before any request-specific options.
22+
func NewMatchService(opts ...option.RequestOption) (r *MatchService) {
23+
r = &MatchService{}
24+
r.Options = opts
25+
return
26+
}

brand_protection/query.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
package brand_protection
4+
5+
import (
6+
"github.com/cloudflare/cloudflare-go/v4/option"
7+
)
8+
9+
// QueryService contains methods and other services that help with interacting with
10+
// the cloudflare API.
11+
//
12+
// Note, unlike clients, this service does not read variables from the environment
13+
// automatically. You should not instantiate this service directly, and instead use
14+
// the [NewQueryService] method instead.
15+
type QueryService struct {
16+
Options []option.RequestOption
17+
}
18+
19+
// NewQueryService generates a new service that applies the given options to each
20+
// request. These options are applied after the parent client's options (if there
21+
// is one), and before any request-specific options.
22+
func NewQueryService(opts ...option.RequestOption) (r *QueryService) {
23+
r = &QueryService{}
24+
r.Options = opts
25+
return
26+
}

0 commit comments

Comments
 (0)