-
Notifications
You must be signed in to change notification settings - Fork 541
/
radar.go
56 lines (52 loc) · 2.1 KB
/
radar.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package radar
import (
"github.com/cloudflare/cloudflare-go/v2/option"
)
// RadarService contains methods and other services that help with interacting with
// the cloudflare API. Note, unlike clients, this service does not read variables
// from the environment automatically. You should not instantiate this service
// directly, and instead use the [NewRadarService] method instead.
type RadarService struct {
Options []option.RequestOption
Annotations *AnnotationService
BGP *BGPService
Datasets *DatasetService
DNS *DNSService
Netflows *NetflowService
Search *SearchService
VerifiedBots *VerifiedBotService
AS112 *AS112Service
ConnectionTampering *ConnectionTamperingService
Email *EmailService
Attacks *AttackService
Entities *EntityService
HTTP *HTTPService
Quality *QualityService
Ranking *RankingService
TrafficAnomalies *TrafficAnomalyService
}
// NewRadarService generates a new service that applies the given options to each
// request. These options are applied after the parent client's options (if there
// is one), and before any request-specific options.
func NewRadarService(opts ...option.RequestOption) (r *RadarService) {
r = &RadarService{}
r.Options = opts
r.Annotations = NewAnnotationService(opts...)
r.BGP = NewBGPService(opts...)
r.Datasets = NewDatasetService(opts...)
r.DNS = NewDNSService(opts...)
r.Netflows = NewNetflowService(opts...)
r.Search = NewSearchService(opts...)
r.VerifiedBots = NewVerifiedBotService(opts...)
r.AS112 = NewAS112Service(opts...)
r.ConnectionTampering = NewConnectionTamperingService(opts...)
r.Email = NewEmailService(opts...)
r.Attacks = NewAttackService(opts...)
r.Entities = NewEntityService(opts...)
r.HTTP = NewHTTPService(opts...)
r.Quality = NewQualityService(opts...)
r.Ranking = NewRankingService(opts...)
r.TrafficAnomalies = NewTrafficAnomalyService(opts...)
return
}