File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -476,13 +476,13 @@ type AdapterConfiguration struct {
476
476
}
477
477
478
478
// PolicyEnforcementMode is an enum type for PolicyEnforcementMode of ResourceServerRepresentation
479
- type PolicyEnforcementMode int
479
+ type PolicyEnforcementMode string
480
480
481
481
// PolicyEnforcementMode values
482
- const (
483
- ENFORCING PolicyEnforcementMode = iota
484
- PERMISSIVE
485
- DISABLED
482
+ var (
483
+ ENFORCING = PolicyEnforcementModeP ( "ENFORCING" )
484
+ PERMISSIVE = PolicyEnforcementModeP ( "PERMISSIVE" )
485
+ DISABLED = PolicyEnforcementModeP ( "DISABLED" )
486
486
)
487
487
488
488
// Logic is an enum type for policy logic
Original file line number Diff line number Diff line change @@ -122,11 +122,16 @@ func DecisionStrategyP(value DecisionStrategy) *DecisionStrategy {
122
122
return & value
123
123
}
124
124
125
- // LogicP returns a pointer for a LogicP value
125
+ // LogicP returns a pointer for a Logic value
126
126
func LogicP (value Logic ) * Logic {
127
127
return & value
128
128
}
129
129
130
+ // PolicyEnforcementModeP returns a pointer for a PolicyEnforcementMode value
131
+ func PolicyEnforcementModeP (value PolicyEnforcementMode ) * PolicyEnforcementMode {
132
+ return & value
133
+ }
134
+
130
135
// PStringSlice converts a pointer to []string or returns ampty slice if nill value
131
136
func PStringSlice (value * []string ) []string {
132
137
if value == nil {
You can’t perform that action at this time.
0 commit comments