Update to latest controller version (#46)
* Update to latest controller version * Fix tests
This commit is contained in:
198
unifi/wlan.generated.go
generated
198
unifi/wlan.generated.go
generated
@@ -1,5 +1,5 @@
|
||||
// Code generated from ace.jar fields *.json files
|
||||
// Controller Version v6.2.26
|
||||
// Controller Version v6.4.54
|
||||
// DO NOT EDIT.
|
||||
|
||||
package unifi
|
||||
@@ -26,111 +26,103 @@ type WLAN struct {
|
||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||
|
||||
ApGroupIDs []string `json:"ap_group_ids,omitempty"`
|
||||
AuthCache bool `json:"auth_cache"`
|
||||
BSupported bool `json:"b_supported"`
|
||||
BroadcastFilterEnabled bool `json:"bc_filter_enabled"`
|
||||
BroadcastFilterList []string `json:"bc_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||
BssTransition bool `json:"bss_transition"`
|
||||
CountryBeacon bool `json:"country_beacon"`
|
||||
DPIEnabled bool `json:"dpi_enabled"`
|
||||
DPIgroupID string `json:"dpigroup_id"` // [\d\w]+|^$
|
||||
DTIMMode string `json:"dtim_mode,omitempty"` // default|custom
|
||||
DTIMNa int `json:"dtim_na,omitempty"` // ^([1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||
DTIMNg int `json:"dtim_ng,omitempty"` // ^([1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||
ElementAdopt bool `json:"element_adopt"`
|
||||
Enabled bool `json:"enabled"`
|
||||
FastRoamingEnabled bool `json:"fast_roaming_enabled"`
|
||||
GroupRekey int `json:"group_rekey,omitempty"` // ^(0|[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)$
|
||||
HideSSID bool `json:"hide_ssid"`
|
||||
Hotspot2ConfEnabled bool `json:"hotspot2conf_enabled"`
|
||||
Hotspot2ConfID string `json:"hotspot2conf_id"`
|
||||
IappEnabled bool `json:"iapp_enabled"`
|
||||
IsGuest bool `json:"is_guest"`
|
||||
L2Isolation bool `json:"l2_isolation"`
|
||||
LogLevel string `json:"log_level,omitempty"`
|
||||
MACFilterEnabled bool `json:"mac_filter_enabled"`
|
||||
MACFilterList []string `json:"mac_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||
MACFilterPolicy string `json:"mac_filter_policy,omitempty"` // allow|deny
|
||||
MinrateNaAdvertisingRates bool `json:"minrate_na_advertising_rates"`
|
||||
MinrateNaBeaconRateKbps int `json:"minrate_na_beacon_rate_kbps,omitempty"`
|
||||
MinrateNaDataRateKbps int `json:"minrate_na_data_rate_kbps,omitempty"`
|
||||
MinrateNaEnabled bool `json:"minrate_na_enabled"`
|
||||
MinrateNaMgmtRateKbps int `json:"minrate_na_mgmt_rate_kbps,omitempty"`
|
||||
MinrateNgAdvertisingRates bool `json:"minrate_ng_advertising_rates"`
|
||||
MinrateNgBeaconRateKbps int `json:"minrate_ng_beacon_rate_kbps,omitempty"`
|
||||
MinrateNgCckRatesEnabled bool `json:"minrate_ng_cck_rates_enabled"`
|
||||
MinrateNgDataRateKbps int `json:"minrate_ng_data_rate_kbps,omitempty"`
|
||||
MinrateNgEnabled bool `json:"minrate_ng_enabled"`
|
||||
MinrateNgMgmtRateKbps int `json:"minrate_ng_mgmt_rate_kbps,omitempty"`
|
||||
MulticastEnhanceEnabled bool `json:"mcastenhance_enabled"`
|
||||
Name string `json:"name,omitempty"` // .{1,32}
|
||||
NameCombineEnabled bool `json:"name_combine_enabled"`
|
||||
NameCombineSuffix string `json:"name_combine_suffix,omitempty"` // .{0,8}
|
||||
NetworkID string `json:"networkconf_id"`
|
||||
No2GhzOui bool `json:"no2ghz_oui"`
|
||||
P2P bool `json:"p2p"`
|
||||
P2PCrossConnect bool `json:"p2p_cross_connect"`
|
||||
PMFCipher string `json:"pmf_cipher,omitempty"` // auto|aes-128-cmac|bip-gmac-256
|
||||
PMFMode string `json:"pmf_mode,omitempty"` // disabled|optional|required
|
||||
Priority string `json:"priority,omitempty"` // medium|high|low
|
||||
ProxyArp bool `json:"proxy_arp"`
|
||||
RADIUSDasEnabled bool `json:"radius_das_enabled"`
|
||||
RADIUSFilterIDEnabled bool `json:"radius_filter_id_enabled"`
|
||||
RADIUSMACAuthEnabled bool `json:"radius_mac_auth_enabled"`
|
||||
RADIUSMACaclEmptyPassword bool `json:"radius_macacl_empty_password"`
|
||||
RADIUSMACaclFormat string `json:"radius_macacl_format,omitempty"` // none_lower|hyphen_lower|colon_lower|none_upper|hyphen_upper|colon_upper
|
||||
RADIUSProfileID string `json:"radiusprofile_id"`
|
||||
RoamClusterID int `json:"roam_cluster_id,omitempty"` // [0-9]|[1-2][0-9]|[3][0-1]|^$
|
||||
RrmEnabled bool `json:"rrm_enabled"`
|
||||
SaeAntiClogging int `json:"sae_anti_clogging,omitempty"`
|
||||
SaeGroups []int `json:"sae_groups,omitempty"`
|
||||
SaePsk []WLANSaePsk `json:"sae_psk,omitempty"`
|
||||
SaePskVLANRequired bool `json:"sae_psk_vlan_required"`
|
||||
SaeSync int `json:"sae_sync,omitempty"`
|
||||
Schedule []string `json:"schedule,omitempty"` // (sun|mon|tue|wed|thu|fri|sat)(\-(sun|mon|tue|wed|thu|fri|sat))?\|([0-2][0-9][0-5][0-9])\-([0-2][0-9][0-5][0-9])
|
||||
ScheduleEnabled bool `json:"schedule_enabled"`
|
||||
ScheduleReversed bool `json:"schedule_reversed"`
|
||||
ScheduleWithDuration []WLANScheduleWithDuration `json:"schedule_with_duration,omitempty"`
|
||||
Security string `json:"security,omitempty"` // open|wpapsk|wep|wpaeap|osen
|
||||
TdlsProhibit bool `json:"tdls_prohibit"`
|
||||
UapsdEnabled bool `json:"uapsd_enabled"`
|
||||
UserGroupID string `json:"usergroup_id"`
|
||||
VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|40[0-8][0-9]|409[0-5]|^$
|
||||
VLANEnabled bool `json:"vlan_enabled"`
|
||||
WEPIDX int `json:"wep_idx,omitempty"` // [1-4]
|
||||
WLANBand string `json:"wlan_band,omitempty"` // 2g|5g|both
|
||||
WLANGroupID string `json:"wlangroup_id"`
|
||||
WPA3Enhanced192 bool `json:"wpa3_enhanced_192"`
|
||||
WPA3FastRoaming bool `json:"wpa3_fast_roaming"`
|
||||
WPA3Support bool `json:"wpa3_support"`
|
||||
WPA3Transition bool `json:"wpa3_transition"`
|
||||
WPAEnc string `json:"wpa_enc,omitempty"` // auto|ccmp|gcmp|ccmp-256|gcmp-256
|
||||
WPAMode string `json:"wpa_mode,omitempty"` // auto|wpa1|wpa2
|
||||
WPAPskRADIUS string `json:"wpa_psk_radius,omitempty"` // disabled|optional|required
|
||||
XIappKey string `json:"x_iapp_key,omitempty"` // [0-9A-Fa-f]{32}
|
||||
XPassphrase string `json:"x_passphrase,omitempty"` // [\x20-\x7E]{8,255}|[0-9a-fA-F]{64}
|
||||
XWEP string `json:"x_wep,omitempty"`
|
||||
ApGroupIDs []string `json:"ap_group_ids,omitempty"`
|
||||
AuthCache bool `json:"auth_cache"`
|
||||
BSupported bool `json:"b_supported"`
|
||||
BroadcastFilterEnabled bool `json:"bc_filter_enabled"`
|
||||
BroadcastFilterList []string `json:"bc_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||
BssTransition bool `json:"bss_transition"`
|
||||
CountryBeacon bool `json:"country_beacon"`
|
||||
DPIEnabled bool `json:"dpi_enabled"`
|
||||
DPIgroupID string `json:"dpigroup_id"` // [\d\w]+|^$
|
||||
DTIMMode string `json:"dtim_mode,omitempty"` // default|custom
|
||||
DTIMNa int `json:"dtim_na,omitempty"` // ^([1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||
DTIMNg int `json:"dtim_ng,omitempty"` // ^([1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^$
|
||||
ElementAdopt bool `json:"element_adopt"`
|
||||
Enabled bool `json:"enabled"`
|
||||
FastRoamingEnabled bool `json:"fast_roaming_enabled"`
|
||||
GroupRekey int `json:"group_rekey,omitempty"` // ^(0|[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)$
|
||||
HideSSID bool `json:"hide_ssid"`
|
||||
Hotspot2ConfEnabled bool `json:"hotspot2conf_enabled"`
|
||||
Hotspot2ConfID string `json:"hotspot2conf_id"`
|
||||
IappEnabled bool `json:"iapp_enabled"`
|
||||
IsGuest bool `json:"is_guest"`
|
||||
L2Isolation bool `json:"l2_isolation"`
|
||||
LogLevel string `json:"log_level,omitempty"`
|
||||
MACFilterEnabled bool `json:"mac_filter_enabled"`
|
||||
MACFilterList []string `json:"mac_filter_list,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
|
||||
MACFilterPolicy string `json:"mac_filter_policy,omitempty"` // allow|deny
|
||||
MinrateNaAdvertisingRates bool `json:"minrate_na_advertising_rates"`
|
||||
MinrateNaDataRateKbps int `json:"minrate_na_data_rate_kbps,omitempty"`
|
||||
MinrateNaEnabled bool `json:"minrate_na_enabled"`
|
||||
MinrateNgAdvertisingRates bool `json:"minrate_ng_advertising_rates"`
|
||||
MinrateNgDataRateKbps int `json:"minrate_ng_data_rate_kbps,omitempty"`
|
||||
MinrateNgEnabled bool `json:"minrate_ng_enabled"`
|
||||
MulticastEnhanceEnabled bool `json:"mcastenhance_enabled"`
|
||||
Name string `json:"name,omitempty"` // .{1,32}
|
||||
NameCombineEnabled bool `json:"name_combine_enabled"`
|
||||
NameCombineSuffix string `json:"name_combine_suffix,omitempty"` // .{0,8}
|
||||
NetworkID string `json:"networkconf_id"`
|
||||
No2GhzOui bool `json:"no2ghz_oui"`
|
||||
OptimizeIotWifiConnectivity bool `json:"optimize_iot_wifi_connectivity"`
|
||||
P2P bool `json:"p2p"`
|
||||
P2PCrossConnect bool `json:"p2p_cross_connect"`
|
||||
PMFCipher string `json:"pmf_cipher,omitempty"` // auto|aes-128-cmac|bip-gmac-256
|
||||
PMFMode string `json:"pmf_mode,omitempty"` // disabled|optional|required
|
||||
Priority string `json:"priority,omitempty"` // medium|high|low
|
||||
ProxyArp bool `json:"proxy_arp"`
|
||||
RADIUSDasEnabled bool `json:"radius_das_enabled"`
|
||||
RADIUSFilterIDEnabled bool `json:"radius_filter_id_enabled"`
|
||||
RADIUSMACAuthEnabled bool `json:"radius_mac_auth_enabled"`
|
||||
RADIUSMACaclEmptyPassword bool `json:"radius_macacl_empty_password"`
|
||||
RADIUSMACaclFormat string `json:"radius_macacl_format,omitempty"` // none_lower|hyphen_lower|colon_lower|none_upper|hyphen_upper|colon_upper
|
||||
RADIUSProfileID string `json:"radiusprofile_id"`
|
||||
RoamClusterID int `json:"roam_cluster_id,omitempty"` // [0-9]|[1-2][0-9]|[3][0-1]|^$
|
||||
RrmEnabled bool `json:"rrm_enabled"`
|
||||
SaeAntiClogging int `json:"sae_anti_clogging,omitempty"`
|
||||
SaeGroups []int `json:"sae_groups,omitempty"`
|
||||
SaePsk []WLANSaePsk `json:"sae_psk,omitempty"`
|
||||
SaePskVLANRequired bool `json:"sae_psk_vlan_required"`
|
||||
SaeSync int `json:"sae_sync,omitempty"`
|
||||
Schedule []string `json:"schedule,omitempty"` // (sun|mon|tue|wed|thu|fri|sat)(\-(sun|mon|tue|wed|thu|fri|sat))?\|([0-2][0-9][0-5][0-9])\-([0-2][0-9][0-5][0-9])
|
||||
ScheduleEnabled bool `json:"schedule_enabled"`
|
||||
ScheduleReversed bool `json:"schedule_reversed"`
|
||||
ScheduleWithDuration []WLANScheduleWithDuration `json:"schedule_with_duration,omitempty"`
|
||||
Security string `json:"security,omitempty"` // open|wpapsk|wep|wpaeap|osen
|
||||
TdlsProhibit bool `json:"tdls_prohibit"`
|
||||
UapsdEnabled bool `json:"uapsd_enabled"`
|
||||
UserGroupID string `json:"usergroup_id"`
|
||||
VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|40[0-8][0-9]|409[0-5]|^$
|
||||
VLANEnabled bool `json:"vlan_enabled"`
|
||||
WEPIDX int `json:"wep_idx,omitempty"` // [1-4]
|
||||
WLANBand string `json:"wlan_band,omitempty"` // 2g|5g|both
|
||||
WLANGroupID string `json:"wlangroup_id"`
|
||||
WPA3Enhanced192 bool `json:"wpa3_enhanced_192"`
|
||||
WPA3FastRoaming bool `json:"wpa3_fast_roaming"`
|
||||
WPA3Support bool `json:"wpa3_support"`
|
||||
WPA3Transition bool `json:"wpa3_transition"`
|
||||
WPAEnc string `json:"wpa_enc,omitempty"` // auto|ccmp|gcmp|ccmp-256|gcmp-256
|
||||
WPAMode string `json:"wpa_mode,omitempty"` // auto|wpa1|wpa2
|
||||
WPAPskRADIUS string `json:"wpa_psk_radius,omitempty"` // disabled|optional|required
|
||||
XIappKey string `json:"x_iapp_key,omitempty"` // [0-9A-Fa-f]{32}
|
||||
XPassphrase string `json:"x_passphrase,omitempty"` // [\x20-\x7E]{8,255}|[0-9a-fA-F]{64}
|
||||
XWEP string `json:"x_wep,omitempty"`
|
||||
}
|
||||
|
||||
func (dst *WLAN) UnmarshalJSON(b []byte) error {
|
||||
type Alias WLAN
|
||||
aux := &struct {
|
||||
DTIMNa emptyStringInt `json:"dtim_na"`
|
||||
DTIMNg emptyStringInt `json:"dtim_ng"`
|
||||
GroupRekey emptyStringInt `json:"group_rekey"`
|
||||
MinrateNaBeaconRateKbps emptyStringInt `json:"minrate_na_beacon_rate_kbps"`
|
||||
MinrateNaDataRateKbps emptyStringInt `json:"minrate_na_data_rate_kbps"`
|
||||
MinrateNaMgmtRateKbps emptyStringInt `json:"minrate_na_mgmt_rate_kbps"`
|
||||
MinrateNgBeaconRateKbps emptyStringInt `json:"minrate_ng_beacon_rate_kbps"`
|
||||
MinrateNgDataRateKbps emptyStringInt `json:"minrate_ng_data_rate_kbps"`
|
||||
MinrateNgMgmtRateKbps emptyStringInt `json:"minrate_ng_mgmt_rate_kbps"`
|
||||
RoamClusterID emptyStringInt `json:"roam_cluster_id"`
|
||||
SaeAntiClogging emptyStringInt `json:"sae_anti_clogging"`
|
||||
SaeGroups []emptyStringInt `json:"sae_groups"`
|
||||
SaeSync emptyStringInt `json:"sae_sync"`
|
||||
VLAN emptyStringInt `json:"vlan"`
|
||||
WEPIDX emptyStringInt `json:"wep_idx"`
|
||||
DTIMNa emptyStringInt `json:"dtim_na"`
|
||||
DTIMNg emptyStringInt `json:"dtim_ng"`
|
||||
GroupRekey emptyStringInt `json:"group_rekey"`
|
||||
MinrateNaDataRateKbps emptyStringInt `json:"minrate_na_data_rate_kbps"`
|
||||
MinrateNgDataRateKbps emptyStringInt `json:"minrate_ng_data_rate_kbps"`
|
||||
RoamClusterID emptyStringInt `json:"roam_cluster_id"`
|
||||
SaeAntiClogging emptyStringInt `json:"sae_anti_clogging"`
|
||||
SaeGroups []emptyStringInt `json:"sae_groups"`
|
||||
SaeSync emptyStringInt `json:"sae_sync"`
|
||||
VLAN emptyStringInt `json:"vlan"`
|
||||
WEPIDX emptyStringInt `json:"wep_idx"`
|
||||
|
||||
*Alias
|
||||
}{
|
||||
@@ -144,12 +136,8 @@ func (dst *WLAN) UnmarshalJSON(b []byte) error {
|
||||
dst.DTIMNa = int(aux.DTIMNa)
|
||||
dst.DTIMNg = int(aux.DTIMNg)
|
||||
dst.GroupRekey = int(aux.GroupRekey)
|
||||
dst.MinrateNaBeaconRateKbps = int(aux.MinrateNaBeaconRateKbps)
|
||||
dst.MinrateNaDataRateKbps = int(aux.MinrateNaDataRateKbps)
|
||||
dst.MinrateNaMgmtRateKbps = int(aux.MinrateNaMgmtRateKbps)
|
||||
dst.MinrateNgBeaconRateKbps = int(aux.MinrateNgBeaconRateKbps)
|
||||
dst.MinrateNgDataRateKbps = int(aux.MinrateNgDataRateKbps)
|
||||
dst.MinrateNgMgmtRateKbps = int(aux.MinrateNgMgmtRateKbps)
|
||||
dst.RoamClusterID = int(aux.RoamClusterID)
|
||||
dst.SaeAntiClogging = int(aux.SaeAntiClogging)
|
||||
dst.SaeGroups = make([]int, len(aux.SaeGroups))
|
||||
|
||||
Reference in New Issue
Block a user