@@ -565,12 +565,6 @@ type AttackLayer7TopAttacksParams struct {
565
565
DateStart param.Field [[]time.Time ] `query:"dateStart" format:"date-time"`
566
566
// Format in which results will be returned.
567
567
Format param.Field [AttackLayer7TopAttacksParamsFormat ] `query:"format"`
568
- // Filters results by HTTP method.
569
- HTTPMethod param.Field [[]AttackLayer7TopAttacksParamsHTTPMethod ] `query:"httpMethod"`
570
- // Filters results by HTTP version.
571
- HTTPVersion param.Field [[]AttackLayer7TopAttacksParamsHTTPVersion ] `query:"httpVersion"`
572
- // Filters results by IP version (Ipv4 vs. IPv6).
573
- IPVersion param.Field [[]AttackLayer7TopAttacksParamsIPVersion ] `query:"ipVersion"`
574
568
// Limits the number of objects returned in the response.
575
569
Limit param.Field [int64 ] `query:"limit"`
576
570
// Array of attack origin/target location attack limits. Together with
@@ -584,8 +578,9 @@ type AttackLayer7TopAttacksParams struct {
584
578
// locations from results. For example, `-US,PT` excludes results from the US, but
585
579
// includes results from PT.
586
580
Location param.Field [[]string ] `query:"location"`
587
- // Attack magnitude can be defined by total requests mitigated or by total zones
588
- // attacked.
581
+ // This parameter is deprecated. In the future, we will only support attack
582
+ // magnitude defined by the total number of mitigated requests
583
+ // (MITIGATED_REQUESTS).
589
584
Magnitude param.Field [AttackLayer7TopAttacksParamsMagnitude ] `query:"magnitude"`
590
585
// Array of L7 mitigation products.
591
586
MitigationProduct param.Field [[]AttackLayer7TopAttacksParamsMitigationProduct ] `query:"mitigationProduct"`
@@ -621,96 +616,6 @@ func (r AttackLayer7TopAttacksParamsFormat) IsKnown() bool {
621
616
return false
622
617
}
623
618
624
- type AttackLayer7TopAttacksParamsHTTPMethod string
625
-
626
- const (
627
- AttackLayer7TopAttacksParamsHTTPMethodGet AttackLayer7TopAttacksParamsHTTPMethod = "GET"
628
- AttackLayer7TopAttacksParamsHTTPMethodPost AttackLayer7TopAttacksParamsHTTPMethod = "POST"
629
- AttackLayer7TopAttacksParamsHTTPMethodDelete AttackLayer7TopAttacksParamsHTTPMethod = "DELETE"
630
- AttackLayer7TopAttacksParamsHTTPMethodPut AttackLayer7TopAttacksParamsHTTPMethod = "PUT"
631
- AttackLayer7TopAttacksParamsHTTPMethodHead AttackLayer7TopAttacksParamsHTTPMethod = "HEAD"
632
- AttackLayer7TopAttacksParamsHTTPMethodPurge AttackLayer7TopAttacksParamsHTTPMethod = "PURGE"
633
- AttackLayer7TopAttacksParamsHTTPMethodOptions AttackLayer7TopAttacksParamsHTTPMethod = "OPTIONS"
634
- AttackLayer7TopAttacksParamsHTTPMethodPropfind AttackLayer7TopAttacksParamsHTTPMethod = "PROPFIND"
635
- AttackLayer7TopAttacksParamsHTTPMethodMkcol AttackLayer7TopAttacksParamsHTTPMethod = "MKCOL"
636
- AttackLayer7TopAttacksParamsHTTPMethodPatch AttackLayer7TopAttacksParamsHTTPMethod = "PATCH"
637
- AttackLayer7TopAttacksParamsHTTPMethodACL AttackLayer7TopAttacksParamsHTTPMethod = "ACL"
638
- AttackLayer7TopAttacksParamsHTTPMethodBcopy AttackLayer7TopAttacksParamsHTTPMethod = "BCOPY"
639
- AttackLayer7TopAttacksParamsHTTPMethodBdelete AttackLayer7TopAttacksParamsHTTPMethod = "BDELETE"
640
- AttackLayer7TopAttacksParamsHTTPMethodBmove AttackLayer7TopAttacksParamsHTTPMethod = "BMOVE"
641
- AttackLayer7TopAttacksParamsHTTPMethodBpropfind AttackLayer7TopAttacksParamsHTTPMethod = "BPROPFIND"
642
- AttackLayer7TopAttacksParamsHTTPMethodBproppatch AttackLayer7TopAttacksParamsHTTPMethod = "BPROPPATCH"
643
- AttackLayer7TopAttacksParamsHTTPMethodCheckin AttackLayer7TopAttacksParamsHTTPMethod = "CHECKIN"
644
- AttackLayer7TopAttacksParamsHTTPMethodCheckout AttackLayer7TopAttacksParamsHTTPMethod = "CHECKOUT"
645
- AttackLayer7TopAttacksParamsHTTPMethodConnect AttackLayer7TopAttacksParamsHTTPMethod = "CONNECT"
646
- AttackLayer7TopAttacksParamsHTTPMethodCopy AttackLayer7TopAttacksParamsHTTPMethod = "COPY"
647
- AttackLayer7TopAttacksParamsHTTPMethodLabel AttackLayer7TopAttacksParamsHTTPMethod = "LABEL"
648
- AttackLayer7TopAttacksParamsHTTPMethodLock AttackLayer7TopAttacksParamsHTTPMethod = "LOCK"
649
- AttackLayer7TopAttacksParamsHTTPMethodMerge AttackLayer7TopAttacksParamsHTTPMethod = "MERGE"
650
- AttackLayer7TopAttacksParamsHTTPMethodMkactivity AttackLayer7TopAttacksParamsHTTPMethod = "MKACTIVITY"
651
- AttackLayer7TopAttacksParamsHTTPMethodMkworkspace AttackLayer7TopAttacksParamsHTTPMethod = "MKWORKSPACE"
652
- AttackLayer7TopAttacksParamsHTTPMethodMove AttackLayer7TopAttacksParamsHTTPMethod = "MOVE"
653
- AttackLayer7TopAttacksParamsHTTPMethodNotify AttackLayer7TopAttacksParamsHTTPMethod = "NOTIFY"
654
- AttackLayer7TopAttacksParamsHTTPMethodOrderpatch AttackLayer7TopAttacksParamsHTTPMethod = "ORDERPATCH"
655
- AttackLayer7TopAttacksParamsHTTPMethodPoll AttackLayer7TopAttacksParamsHTTPMethod = "POLL"
656
- AttackLayer7TopAttacksParamsHTTPMethodProppatch AttackLayer7TopAttacksParamsHTTPMethod = "PROPPATCH"
657
- AttackLayer7TopAttacksParamsHTTPMethodReport AttackLayer7TopAttacksParamsHTTPMethod = "REPORT"
658
- AttackLayer7TopAttacksParamsHTTPMethodSearch AttackLayer7TopAttacksParamsHTTPMethod = "SEARCH"
659
- AttackLayer7TopAttacksParamsHTTPMethodSubscribe AttackLayer7TopAttacksParamsHTTPMethod = "SUBSCRIBE"
660
- AttackLayer7TopAttacksParamsHTTPMethodTrace AttackLayer7TopAttacksParamsHTTPMethod = "TRACE"
661
- AttackLayer7TopAttacksParamsHTTPMethodUncheckout AttackLayer7TopAttacksParamsHTTPMethod = "UNCHECKOUT"
662
- AttackLayer7TopAttacksParamsHTTPMethodUnlock AttackLayer7TopAttacksParamsHTTPMethod = "UNLOCK"
663
- AttackLayer7TopAttacksParamsHTTPMethodUnsubscribe AttackLayer7TopAttacksParamsHTTPMethod = "UNSUBSCRIBE"
664
- AttackLayer7TopAttacksParamsHTTPMethodUpdate AttackLayer7TopAttacksParamsHTTPMethod = "UPDATE"
665
- AttackLayer7TopAttacksParamsHTTPMethodVersioncontrol AttackLayer7TopAttacksParamsHTTPMethod = "VERSIONCONTROL"
666
- AttackLayer7TopAttacksParamsHTTPMethodBaselinecontrol AttackLayer7TopAttacksParamsHTTPMethod = "BASELINECONTROL"
667
- AttackLayer7TopAttacksParamsHTTPMethodXmsenumatts AttackLayer7TopAttacksParamsHTTPMethod = "XMSENUMATTS"
668
- AttackLayer7TopAttacksParamsHTTPMethodRpcOutData AttackLayer7TopAttacksParamsHTTPMethod = "RPC_OUT_DATA"
669
- AttackLayer7TopAttacksParamsHTTPMethodRpcInData AttackLayer7TopAttacksParamsHTTPMethod = "RPC_IN_DATA"
670
- AttackLayer7TopAttacksParamsHTTPMethodJson AttackLayer7TopAttacksParamsHTTPMethod = "JSON"
671
- AttackLayer7TopAttacksParamsHTTPMethodCook AttackLayer7TopAttacksParamsHTTPMethod = "COOK"
672
- AttackLayer7TopAttacksParamsHTTPMethodTrack AttackLayer7TopAttacksParamsHTTPMethod = "TRACK"
673
- )
674
-
675
- func (r AttackLayer7TopAttacksParamsHTTPMethod ) IsKnown () bool {
676
- switch r {
677
- case AttackLayer7TopAttacksParamsHTTPMethodGet , AttackLayer7TopAttacksParamsHTTPMethodPost , AttackLayer7TopAttacksParamsHTTPMethodDelete , AttackLayer7TopAttacksParamsHTTPMethodPut , AttackLayer7TopAttacksParamsHTTPMethodHead , AttackLayer7TopAttacksParamsHTTPMethodPurge , AttackLayer7TopAttacksParamsHTTPMethodOptions , AttackLayer7TopAttacksParamsHTTPMethodPropfind , AttackLayer7TopAttacksParamsHTTPMethodMkcol , AttackLayer7TopAttacksParamsHTTPMethodPatch , AttackLayer7TopAttacksParamsHTTPMethodACL , AttackLayer7TopAttacksParamsHTTPMethodBcopy , AttackLayer7TopAttacksParamsHTTPMethodBdelete , AttackLayer7TopAttacksParamsHTTPMethodBmove , AttackLayer7TopAttacksParamsHTTPMethodBpropfind , AttackLayer7TopAttacksParamsHTTPMethodBproppatch , AttackLayer7TopAttacksParamsHTTPMethodCheckin , AttackLayer7TopAttacksParamsHTTPMethodCheckout , AttackLayer7TopAttacksParamsHTTPMethodConnect , AttackLayer7TopAttacksParamsHTTPMethodCopy , AttackLayer7TopAttacksParamsHTTPMethodLabel , AttackLayer7TopAttacksParamsHTTPMethodLock , AttackLayer7TopAttacksParamsHTTPMethodMerge , AttackLayer7TopAttacksParamsHTTPMethodMkactivity , AttackLayer7TopAttacksParamsHTTPMethodMkworkspace , AttackLayer7TopAttacksParamsHTTPMethodMove , AttackLayer7TopAttacksParamsHTTPMethodNotify , AttackLayer7TopAttacksParamsHTTPMethodOrderpatch , AttackLayer7TopAttacksParamsHTTPMethodPoll , AttackLayer7TopAttacksParamsHTTPMethodProppatch , AttackLayer7TopAttacksParamsHTTPMethodReport , AttackLayer7TopAttacksParamsHTTPMethodSearch , AttackLayer7TopAttacksParamsHTTPMethodSubscribe , AttackLayer7TopAttacksParamsHTTPMethodTrace , AttackLayer7TopAttacksParamsHTTPMethodUncheckout , AttackLayer7TopAttacksParamsHTTPMethodUnlock , AttackLayer7TopAttacksParamsHTTPMethodUnsubscribe , AttackLayer7TopAttacksParamsHTTPMethodUpdate , AttackLayer7TopAttacksParamsHTTPMethodVersioncontrol , AttackLayer7TopAttacksParamsHTTPMethodBaselinecontrol , AttackLayer7TopAttacksParamsHTTPMethodXmsenumatts , AttackLayer7TopAttacksParamsHTTPMethodRpcOutData , AttackLayer7TopAttacksParamsHTTPMethodRpcInData , AttackLayer7TopAttacksParamsHTTPMethodJson , AttackLayer7TopAttacksParamsHTTPMethodCook , AttackLayer7TopAttacksParamsHTTPMethodTrack :
678
- return true
679
- }
680
- return false
681
- }
682
-
683
- type AttackLayer7TopAttacksParamsHTTPVersion string
684
-
685
- const (
686
- AttackLayer7TopAttacksParamsHTTPVersionHttPv1 AttackLayer7TopAttacksParamsHTTPVersion = "HTTPv1"
687
- AttackLayer7TopAttacksParamsHTTPVersionHttPv2 AttackLayer7TopAttacksParamsHTTPVersion = "HTTPv2"
688
- AttackLayer7TopAttacksParamsHTTPVersionHttPv3 AttackLayer7TopAttacksParamsHTTPVersion = "HTTPv3"
689
- )
690
-
691
- func (r AttackLayer7TopAttacksParamsHTTPVersion ) IsKnown () bool {
692
- switch r {
693
- case AttackLayer7TopAttacksParamsHTTPVersionHttPv1 , AttackLayer7TopAttacksParamsHTTPVersionHttPv2 , AttackLayer7TopAttacksParamsHTTPVersionHttPv3 :
694
- return true
695
- }
696
- return false
697
- }
698
-
699
- type AttackLayer7TopAttacksParamsIPVersion string
700
-
701
- const (
702
- AttackLayer7TopAttacksParamsIPVersionIPv4 AttackLayer7TopAttacksParamsIPVersion = "IPv4"
703
- AttackLayer7TopAttacksParamsIPVersionIPv6 AttackLayer7TopAttacksParamsIPVersion = "IPv6"
704
- )
705
-
706
- func (r AttackLayer7TopAttacksParamsIPVersion ) IsKnown () bool {
707
- switch r {
708
- case AttackLayer7TopAttacksParamsIPVersionIPv4 , AttackLayer7TopAttacksParamsIPVersionIPv6 :
709
- return true
710
- }
711
- return false
712
- }
713
-
714
619
// Array of attack origin/target location attack limits. Together with
715
620
// `limitPerLocation`, limits how many objects will be fetched per origin/target
716
621
// location.
@@ -729,8 +634,9 @@ func (r AttackLayer7TopAttacksParamsLimitDirection) IsKnown() bool {
729
634
return false
730
635
}
731
636
732
- // Attack magnitude can be defined by total requests mitigated or by total zones
733
- // attacked.
637
+ // This parameter is deprecated. In the future, we will only support attack
638
+ // magnitude defined by the total number of mitigated requests
639
+ // (MITIGATED_REQUESTS).
734
640
type AttackLayer7TopAttacksParamsMagnitude string
735
641
736
642
const (
0 commit comments