Refactored field processing in generator.
* Allows for specifying more customizations per field in each type. Previously, the switch clause didn't allow sub-types to be modified, but that became a problem with some of the more complex types. * Fixed several problematic fields in the Device resource * Removed the underscore separator from generated type names
This commit is contained in:
committed by
Paul Tyng
parent
fa5012f42a
commit
16c246525b
@@ -23,25 +23,25 @@ type RADIUSProfile struct {
|
||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||
|
||||
AccountingEnabled bool `json:"accounting_enabled"`
|
||||
AcctServers []RADIUSProfile_AcctServers `json:"acct_servers,omitempty"`
|
||||
AuthServers []RADIUSProfile_AuthServers `json:"auth_servers,omitempty"`
|
||||
InterimUpdateEnabled bool `json:"interim_update_enabled"`
|
||||
InterimUpdateInterval int `json:"interim_update_interval,omitempty"` // ^([6-9][0-9]|[1-9][0-9]{2,3}|[1-7][0-9]{4}|8[0-5][0-9]{3}|86[0-3][0-9][0-9]|86400)$
|
||||
Name string `json:"name,omitempty"` // .{1,128}
|
||||
UseUsgAcctServer bool `json:"use_usg_acct_server"`
|
||||
UseUsgAuthServer bool `json:"use_usg_auth_server"`
|
||||
VLANEnabled bool `json:"vlan_enabled"`
|
||||
VLANWLANMode string `json:"vlan_wlan_mode,omitempty"` // disabled|optional|required
|
||||
AccountingEnabled bool `json:"accounting_enabled"`
|
||||
AcctServers []RADIUSProfileAcctServers `json:"acct_servers,omitempty"`
|
||||
AuthServers []RADIUSProfileAuthServers `json:"auth_servers,omitempty"`
|
||||
InterimUpdateEnabled bool `json:"interim_update_enabled"`
|
||||
InterimUpdateInterval int `json:"interim_update_interval,omitempty"` // ^([6-9][0-9]|[1-9][0-9]{2,3}|[1-7][0-9]{4}|8[0-5][0-9]{3}|86[0-3][0-9][0-9]|86400)$
|
||||
Name string `json:"name,omitempty"` // .{1,128}
|
||||
UseUsgAcctServer bool `json:"use_usg_acct_server"`
|
||||
UseUsgAuthServer bool `json:"use_usg_auth_server"`
|
||||
VLANEnabled bool `json:"vlan_enabled"`
|
||||
VLANWLANMode string `json:"vlan_wlan_mode,omitempty"` // disabled|optional|required
|
||||
}
|
||||
|
||||
type RADIUSProfile_AcctServers struct {
|
||||
type RADIUSProfileAcctServers struct {
|
||||
IP string `json:"ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||
Port int `json:"port,omitempty"` // ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])$|^$
|
||||
XSecret string `json:"x_secret,omitempty"`
|
||||
}
|
||||
|
||||
type RADIUSProfile_AuthServers struct {
|
||||
type RADIUSProfileAuthServers struct {
|
||||
IP string `json:"ip,omitempty"` // ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$
|
||||
Port int `json:"port,omitempty"` // ^([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])$|^$
|
||||
XSecret string `json:"x_secret,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user