Add back mdns_enabled (#73)
This commit is contained in:
@@ -144,6 +144,11 @@ func NewResource(structName string, resourcePath string) *Resource {
|
||||
case resource.IsSetting():
|
||||
resource.ResourcePath = strcase.ToSnake(strings.TrimPrefix(structName, "Setting"))
|
||||
baseType.Fields[" Key"] = NewFieldInfo("Key", "key", "string", "", false, false, "")
|
||||
|
||||
if resource.StructName == "SettingUsg" {
|
||||
// Removed in v7, retaining for backwards compatibility
|
||||
baseType.Fields["MdnsEnabled"] = NewFieldInfo("MdnsEnabled", "mdns_enabled", "bool", "", true, false, "")
|
||||
}
|
||||
case resource.StructName == "Device":
|
||||
baseType.Fields[" MAC"] = NewFieldInfo("MAC", "mac", "string", "", true, false, "")
|
||||
baseType.Fields["Adopted"] = NewFieldInfo("Adopted", "adopted", "bool", "", false, false, "")
|
||||
|
||||
1
unifi/setting_usg.generated.go
generated
1
unifi/setting_usg.generated.go
generated
@@ -55,6 +55,7 @@ type SettingUsg struct {
|
||||
H323Module bool `json:"h323_module"`
|
||||
ICMPTimeout int `json:"icmp_timeout,omitempty"`
|
||||
LldpEnableAll bool `json:"lldp_enable_all"`
|
||||
MdnsEnabled bool `json:"mdns_enabled,omitempty"`
|
||||
MssClamp string `json:"mss_clamp,omitempty"` // auto|custom|disabled
|
||||
MssClampMss int `json:"mss_clamp_mss,omitempty"` // [1-9][0-9]{2,3}
|
||||
OffloadAccounting bool `json:"offload_accounting"`
|
||||
|
||||
Reference in New Issue
Block a user