From 525ebe5e22a4438de43fb19b5733e47e6b9ae0a1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:50:37 +1100 Subject: [PATCH] [create-pull-request] automated change (#239) Co-authored-by: joshuaspence <234676+joshuaspence@users.noreply.github.com> --- unifi/account.generated.go | 18 ++++++++++-------- unifi/device.generated.go | 6 ++++-- unifi/network.generated.go | 6 ++++-- unifi/setting_dashboard.generated.go | 3 ++- unifi/setting_ips.generated.go | 7 +++---- unifi/setting_rsyslogd.generated.go | 2 +- unifi/setting_usg.generated.go | 4 +--- unifi/version.generated.go | 2 +- 8 files changed, 26 insertions(+), 22 deletions(-) diff --git a/unifi/account.generated.go b/unifi/account.generated.go index 24051a7..55ee76c 100644 --- a/unifi/account.generated.go +++ b/unifi/account.generated.go @@ -25,14 +25,16 @@ type Account struct { NoDelete bool `json:"attr_no_delete,omitempty"` NoEdit bool `json:"attr_no_edit,omitempty"` - 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])$|^$ - Name string `json:"name,omitempty"` // ^[^"' ]+$ - NetworkID string `json:"networkconf_id,omitempty"` - TunnelConfigType string `json:"tunnel_config_type,omitempty"` // vpn|802.1x|custom - TunnelMediumType int `json:"tunnel_medium_type,omitempty"` // [1-9]|1[0-5]|^$ - TunnelType int `json:"tunnel_type,omitempty"` // [1-9]|1[0-3]|^$ - VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|400[0-9]|^$ - XPassword string `json:"x_password,omitempty"` + FilterIDs []string `json:"filter_ids,omitempty"` + 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])$|^$ + Name string `json:"name,omitempty"` // ^[^"' ]+$ + NetworkID string `json:"networkconf_id,omitempty"` + TunnelConfigType string `json:"tunnel_config_type,omitempty"` // vpn|802.1x|custom + TunnelMediumType int `json:"tunnel_medium_type,omitempty"` // [1-9]|1[0-5]|^$ + TunnelType int `json:"tunnel_type,omitempty"` // [1-9]|1[0-3]|^$ + UlpUserID string `json:"ulp_user_id"` + VLAN int `json:"vlan,omitempty"` // [2-9]|[1-9][0-9]{1,2}|[1-3][0-9]{3}|400[0-9]|^$ + XPassword string `json:"x_password,omitempty"` } func (dst *Account) UnmarshalJSON(b []byte) error { diff --git a/unifi/device.generated.go b/unifi/device.generated.go index 07f9137..3eb3c12 100644 --- a/unifi/device.generated.go +++ b/unifi/device.generated.go @@ -90,7 +90,8 @@ type Device struct { PowerSourceCtrl string `json:"power_source_ctrl,omitempty"` // auto|8023af|8023at|8023bt-type3|8023bt-type4|pasv24|poe-injector|ac|adapter|dc|rps PowerSourceCtrlBudget int `json:"power_source_ctrl_budget,omitempty"` // [0-9]|[1-9][0-9]|[1-9][0-9][0-9] PowerSourceCtrlEnabled bool `json:"power_source_ctrl_enabled,omitempty"` - PtpApMAC string `json:"ptp_ap_mac,omitempty"` // ^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$ + PtmpApMAC string `json:"ptmp_ap_mac,omitempty"` // ^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$ + PtpApMAC string `json:"ptp_ap_mac,omitempty"` // ^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$ RADIUSProfileID string `json:"radiusprofile_id,omitempty"` RadioTable []DeviceRadioTable `json:"radio_table,omitempty"` ResetbtnEnabled string `json:"resetbtn_enabled,omitempty"` // on|off @@ -98,7 +99,7 @@ type Device struct { SnmpContact string `json:"snmp_contact,omitempty"` // .{0,255} SnmpLocation string `json:"snmp_location,omitempty"` // .{0,255} State DeviceState `json:"state"` - StationMode string `json:"station_mode,omitempty"` // ptp|wifi + StationMode string `json:"station_mode,omitempty"` // ptp|ptmp|wifi StpPriority string `json:"stp_priority,omitempty"` // 0|4096|8192|12288|16384|20480|24576|28672|32768|36864|40960|45056|49152|53248|57344|61440 StpVersion string `json:"stp_version,omitempty"` // stp|rstp|disabled SwitchVLANEnabled bool `json:"switch_vlan_enabled,omitempty"` @@ -183,6 +184,7 @@ func (dst *DeviceConfigNetwork) UnmarshalJSON(b []byte) error { type DeviceEtherLighting struct { Behavior string `json:"behavior,omitempty"` // breath|steady Brightness int `json:"brightness,omitempty"` // [1-9]|[1-9][0-9]|100 + LedMode string `json:"led_mode,omitempty"` // standard|etherlighting Mode string `json:"mode,omitempty"` // speed|network } diff --git a/unifi/network.generated.go b/unifi/network.generated.go index 9ab4086..520f299 100644 --- a/unifi/network.generated.go +++ b/unifi/network.generated.go @@ -75,6 +75,7 @@ type Network struct { DomainName string `json:"domain_name"` // (?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?