@@ -24,8 +24,9 @@ import (
24
24
25
25
// Default attack handling. Default settings for handling attacks.
26
26
type AttackHandling struct {
27
- BlockingStrategyDotNet BlockingStrategy `json:"blockingStrategyDotNet"` // (v1.290) Possible Values: `BLOCK`, `MONITOR`, `OFF`
28
- BlockingStrategyJava BlockingStrategy `json:"blockingStrategyJava"` // Possible Values: `BLOCK`, `MONITOR`, `OFF`
27
+ BlockingStrategyDotNet BlockingStrategy `json:"blockingStrategyDotNet"` // (v1.290) Possible Values: `BLOCK`, `MONITOR`, `OFF`
28
+ BlockingStrategyGo * BlockingStrategy `json:"blockingStrategyGo,omitempty"` // Possible Values: `BLOCK`, `MONITOR`, `OFF`
29
+ BlockingStrategyJava BlockingStrategy `json:"blockingStrategyJava"` // Possible Values: `BLOCK`, `MONITOR`, `OFF`
29
30
}
30
31
31
32
func (me * AttackHandling ) Schema () map [string ]* schema.Schema {
@@ -36,6 +37,11 @@ func (me *AttackHandling) Schema() map[string]*schema.Schema {
36
37
Optional : true , // nullable
37
38
Default : "OFF" ,
38
39
},
40
+ "blocking_strategy_go" : {
41
+ Type : schema .TypeString ,
42
+ Description : "Possible Values: `BLOCK`, `MONITOR`, `OFF`" ,
43
+ Optional : true , // nullable
44
+ },
39
45
"blocking_strategy_java" : {
40
46
Type : schema .TypeString ,
41
47
Description : "Possible Values: `BLOCK`, `MONITOR`, `OFF`" ,
@@ -47,13 +53,15 @@ func (me *AttackHandling) Schema() map[string]*schema.Schema {
47
53
func (me * AttackHandling ) MarshalHCL (properties hcl.Properties ) error {
48
54
return properties .EncodeAll (map [string ]any {
49
55
"blocking_strategy_dot_net" : me .BlockingStrategyDotNet ,
56
+ "blocking_strategy_go" : me .BlockingStrategyGo ,
50
57
"blocking_strategy_java" : me .BlockingStrategyJava ,
51
58
})
52
59
}
53
60
54
61
func (me * AttackHandling ) UnmarshalHCL (decoder hcl.Decoder ) error {
55
62
return decoder .DecodeAll (map [string ]any {
56
63
"blocking_strategy_dot_net" : & me .BlockingStrategyDotNet ,
64
+ "blocking_strategy_go" : & me .BlockingStrategyGo ,
57
65
"blocking_strategy_java" : & me .BlockingStrategyJava ,
58
66
})
59
67
}
0 commit comments