-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.go
33 lines (29 loc) · 1.35 KB
/
profile.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
package models
type UpgradeTime struct {
ScheduleType string `json:"scheduleType,omitempty"`
Time string `json:"time,omitempty"`
WeekDays []string `json:"weekDays,omitempty"`
Duration int `json:"duration,omitempty"`
}
type KeyValue struct {
ID string `json:"id"`
Key string `json:"key"`
Value string `json:"value"`
}
type Authentication struct {
Token string `json:"token"`
MaxNumberOfAgents int `json:"maxNumberOfAgents"`
}
// CloudGuardAppSecGatewayProfile represents the profile object as it is returned from mgmt
type CloudGuardAppSecGatewayProfile struct {
ID string `json:"id"`
Name string `json:"name"`
ProfileType string `json:"profileType"`
ProfileSubType string `json:"profileSubType"`
UpgradeMode string `json:"upgradeMode,omitempty"`
Authentication Authentication `json:"authentication,omitempty"`
AdditionalSettings []KeyValue `json:"additionalSettings"`
ReverseProxyAdditionalSettings []KeyValue `json:"reverseProxyAdditionalSettings,omitempty"`
UpgradeTime *UpgradeTime `json:"upgradeTime,omitempty"`
ReverseProxyUpstreamTimeout int `json:"reverseProxyUpstreamTimeout,omitempty"`
}