-
Notifications
You must be signed in to change notification settings - Fork 12
/
dialerrule.go
41 lines (27 loc) · 996 Bytes
/
dialerrule.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
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Dialerrule
type Dialerrule struct {
// Id - The identifier of the rule.
Id *string `json:"id,omitempty"`
// Name - The name of the rule.
Name *string `json:"name,omitempty"`
// Order - The ranked order of the rule. Rules are processed from lowest number to highest.
Order *int `json:"order,omitempty"`
// Category - The category of the rule.
Category *string `json:"category,omitempty"`
// Conditions - A list of Conditions. All of the Conditions must evaluate to true to trigger the actions.
Conditions *[]Condition `json:"conditions,omitempty"`
// Actions - The list of actions to be taken if the conditions are true.
Actions *[]Dialeraction `json:"actions,omitempty"`
}
// String returns a JSON representation of the model
func (o *Dialerrule) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}