Update to latest controller version (#46)

* Update to latest controller version

* Fix tests
This commit is contained in:
Joshua Spence
2021-09-21 23:26:12 +10:00
committed by GitHub
parent 0cb7d3e514
commit 7d87194aef
62 changed files with 325 additions and 325 deletions

View File

@@ -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
@@ -29,16 +29,18 @@ type User struct {
DevIdOverride int `json:"dev_id_override,omitempty"` // non-generated field
IP string `json:"ip,omitempty"` // non-generated field
Blocked bool `json:"blocked,omitempty"`
FixedIP string `json:"fixed_ip,omitempty"`
Hostname string `json:"hostname,omitempty"`
LastSeen int `json:"last_seen,omitempty"`
MAC string `json:"mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
Name string `json:"name,omitempty"`
NetworkID string `json:"network_id"`
Note string `json:"note,omitempty"`
UseFixedIP bool `json:"use_fixedip"`
UserGroupID string `json:"usergroup_id"`
Blocked bool `json:"blocked,omitempty"`
FixedApEnabled bool `json:"fixed_ap_enabled"`
FixedApMAC string `json:"fixed_ap_mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
FixedIP string `json:"fixed_ip,omitempty"`
Hostname string `json:"hostname,omitempty"`
LastSeen int `json:"last_seen,omitempty"`
MAC string `json:"mac,omitempty"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$
Name string `json:"name,omitempty"`
NetworkID string `json:"network_id"`
Note string `json:"note,omitempty"`
UseFixedIP bool `json:"use_fixedip"`
UserGroupID string `json:"usergroup_id"`
}
func (dst *User) UnmarshalJSON(b []byte) error {