Skip to content

Commit

Permalink
feat(api): rename reserved model_type keyword (#3034)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Sep 9, 2024
1 parent 2e4c5b8 commit 6798779
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 635 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1332
configured_endpoints: 1330
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-60169622cdb93defdefea93ffc7d048f623611bd2220fbd0274f79e3e7bda5f0.yml
22 changes: 0 additions & 22 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6746,28 +6746,6 @@ Methods:
- <code title="get /radar/tcp_resets_timeouts/summary">client.Radar.TCPResetsTimeouts.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#TCPResetsTimeoutService.Summary">Summary</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#TCPResetsTimeoutSummaryParams">TCPResetsTimeoutSummaryParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#TCPResetsTimeoutSummaryResponse">TCPResetsTimeoutSummaryResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /radar/tcp_resets_timeouts/timeseries_groups">client.Radar.TCPResetsTimeouts.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#TCPResetsTimeoutService.TimeseriesGroups">TimeseriesGroups</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#TCPResetsTimeoutTimeseriesGroupsParams">TCPResetsTimeoutTimeseriesGroupsParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#TCPResetsTimeoutTimeseriesGroupsResponse">TCPResetsTimeoutTimeseriesGroupsResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## RobotsTXT

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTDomainsResponse">RobotsTXTDomainsResponse</a>

Methods:

- <code title="get /radar/robots_txt/domains">client.Radar.RobotsTXT.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTService.Domains">Domains</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTDomainsParams">RobotsTXTDomainsParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTDomainsResponse">RobotsTXTDomainsResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Top

#### Directive

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTTopDirectiveGetResponse">RobotsTXTTopDirectiveGetResponse</a>

Methods:

- <code title="get /radar/robots_txt/top/{directive}">client.Radar.RobotsTXT.Top.Directive.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTTopDirectiveService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, directive <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTTopDirectiveGetParamsDirective">RobotsTXTTopDirectiveGetParamsDirective</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTTopDirectiveGetParams">RobotsTXTTopDirectiveGetParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar">radar</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/radar#RobotsTXTTopDirectiveGetResponse">RobotsTXTTopDirectiveGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# BotManagement

Params Types:
Expand Down
2 changes: 0 additions & 2 deletions radar/radar.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ type RadarService struct {
Ranking *RankingService
TrafficAnomalies *TrafficAnomalyService
TCPResetsTimeouts *TCPResetsTimeoutService
RobotsTXT *RobotsTXTService
}

// NewRadarService generates a new service that applies the given options to each
Expand All @@ -57,6 +56,5 @@ func NewRadarService(opts ...option.RequestOption) (r *RadarService) {
r.Ranking = NewRankingService(opts...)
r.TrafficAnomalies = NewTrafficAnomalyService(opts...)
r.TCPResetsTimeouts = NewTCPResetsTimeoutService(opts...)
r.RobotsTXT = NewRobotsTXTService(opts...)
return
}
190 changes: 0 additions & 190 deletions radar/robotstxt.go

This file was deleted.

44 changes: 0 additions & 44 deletions radar/robotstxt_test.go

This file was deleted.

28 changes: 0 additions & 28 deletions radar/robotstxttop.go

This file was deleted.

Loading

0 comments on commit 6798779

Please sign in to comment.