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 c17d2ec..3eb3c12 100644 --- a/unifi/device.generated.go +++ b/unifi/device.generated.go @@ -27,85 +27,88 @@ type Device struct { MAC string `json:"mac,omitempty"` - Adopted bool `json:"adopted"` - AtfEnabled bool `json:"atf_enabled,omitempty"` - BandsteeringMode string `json:"bandsteering_mode,omitempty"` // off|equal|prefer_5g - BaresipAuthUser string `json:"baresip_auth_user,omitempty"` // ^\+?[a-zA-Z0-9_.\-!~*'()]* - BaresipEnabled bool `json:"baresip_enabled,omitempty"` - BaresipExtension string `json:"baresip_extension,omitempty"` // ^\+?[a-zA-Z0-9_.\-!~*'()]* - ConfigNetwork DeviceConfigNetwork `json:"config_network,omitempty"` - ConnectedBatteryOverrides []DeviceConnectedBatteryOverrides `json:"connected_battery_overrides,omitempty"` - DPIEnabled bool `json:"dpi_enabled,omitempty"` - Disabled bool `json:"disabled,omitempty"` - Dot1XFallbackNetworkID string `json:"dot1x_fallback_networkconf_id,omitempty"` // [\d\w]+| - Dot1XPortctrlEnabled bool `json:"dot1x_portctrl_enabled,omitempty"` - EtherLighting DeviceEtherLighting `json:"ether_lighting,omitempty"` - EthernetOverrides []DeviceEthernetOverrides `json:"ethernet_overrides,omitempty"` - FlowctrlEnabled bool `json:"flowctrl_enabled,omitempty"` - GatewayVrrpMode string `json:"gateway_vrrp_mode,omitempty"` // primary|secondary - GatewayVrrpPriority int `json:"gateway_vrrp_priority,omitempty"` // [1-9][0-9]|[1-9][0-9][0-9] - HeightInMeters float64 `json:"heightInMeters,omitempty"` - Hostname string `json:"hostname,omitempty"` // .{1,128} - JumboframeEnabled bool `json:"jumboframe_enabled,omitempty"` - LcmBrightness int `json:"lcm_brightness,omitempty"` // [1-9]|[1-9][0-9]|100 - LcmBrightnessOverride bool `json:"lcm_brightness_override,omitempty"` - LcmIDleTimeout int `json:"lcm_idle_timeout,omitempty"` // [1-9][0-9]|[1-9][0-9][0-9]|[1-2][0-9][0-9][0-9]|3[0-5][0-9][0-9]|3600 - LcmIDleTimeoutOverride bool `json:"lcm_idle_timeout_override,omitempty"` - LcmNightModeBegins string `json:"lcm_night_mode_begins,omitempty"` // (^$)|(^(0[1-9])|(1[0-9])|(2[0-3])):([0-5][0-9]$) - LcmNightModeEnds string `json:"lcm_night_mode_ends,omitempty"` // (^$)|(^(0[1-9])|(1[0-9])|(2[0-3])):([0-5][0-9]$) - LcmSettingsRestrictedAccess bool `json:"lcm_settings_restricted_access,omitempty"` - LcmTrackerEnabled bool `json:"lcm_tracker_enabled,omitempty"` - LcmTrackerSeed string `json:"lcm_tracker_seed,omitempty"` // .{0,50} - LedOverride string `json:"led_override,omitempty"` // default|on|off - LedOverrideColor string `json:"led_override_color,omitempty"` // ^#(?:[0-9a-fA-F]{3}){1,2}$ - LedOverrideColorBrightness int `json:"led_override_color_brightness,omitempty"` // ^[0-9][0-9]?$|^100$ - Locked bool `json:"locked,omitempty"` - LowpfmodeOverride bool `json:"lowpfmode_override,omitempty"` - LteApn string `json:"lte_apn,omitempty"` // .{1,128} - LteAuthType string `json:"lte_auth_type,omitempty"` // PAP|CHAP|PAP-CHAP|NONE - LteDataLimitEnabled bool `json:"lte_data_limit_enabled,omitempty"` - LteDataWarningEnabled bool `json:"lte_data_warning_enabled,omitempty"` - LteExtAnt bool `json:"lte_ext_ant,omitempty"` - LteHardLimit int `json:"lte_hard_limit,omitempty"` - LtePassword string `json:"lte_password,omitempty"` - LtePoe bool `json:"lte_poe,omitempty"` - LteRoamingAllowed bool `json:"lte_roaming_allowed,omitempty"` - LteSimPin int `json:"lte_sim_pin,omitempty"` - LteSoftLimit int `json:"lte_soft_limit,omitempty"` - LteUsername string `json:"lte_username,omitempty"` - MapID string `json:"map_id,omitempty"` - MeshStaVapEnabled bool `json:"mesh_sta_vap_enabled,omitempty"` - MgmtNetworkID string `json:"mgmt_network_id,omitempty"` // [\d\w]+ - Model string `json:"model,omitempty"` - Name string `json:"name,omitempty"` // .{0,128} - OutdoorModeOverride string `json:"outdoor_mode_override,omitempty"` // default|on|off - OutletEnabled bool `json:"outlet_enabled,omitempty"` - OutletOverrides []DeviceOutletOverrides `json:"outlet_overrides,omitempty"` - OutletPowerCycleEnabled bool `json:"outlet_power_cycle_enabled,omitempty"` - PeerToPeerMode string `json:"peer_to_peer_mode,omitempty"` // ap|sta - PoeMode string `json:"poe_mode,omitempty"` // auto|pasv24|passthrough|off - PortOverrides []DevicePortOverrides `json:"port_overrides"` - 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"` - RADIUSProfileID string `json:"radiusprofile_id,omitempty"` - RadioTable []DeviceRadioTable `json:"radio_table,omitempty"` - ResetbtnEnabled string `json:"resetbtn_enabled,omitempty"` // on|off - RpsOverride DeviceRpsOverride `json:"rps_override,omitempty"` - SnmpContact string `json:"snmp_contact,omitempty"` // .{0,255} - SnmpLocation string `json:"snmp_location,omitempty"` // .{0,255} - State DeviceState `json:"state"` - 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"` - Type string `json:"type,omitempty"` - UbbPairName string `json:"ubb_pair_name,omitempty"` // .{1,128} - Volume int `json:"volume,omitempty"` // [0-9]|[1-9][0-9]|100 - X float64 `json:"x,omitempty"` - XBaresipPassword string `json:"x_baresip_password,omitempty"` // ^[a-zA-Z0-9_.\-!~*'()]* - Y float64 `json:"y,omitempty"` - - PortTable []PortTable `json:"port_table,omitempty"` + Adopted bool `json:"adopted"` + AfcEnabled bool `json:"afc_enabled,omitempty"` + AtfEnabled bool `json:"atf_enabled,omitempty"` + BandsteeringMode string `json:"bandsteering_mode,omitempty"` // off|equal|prefer_5g + BaresipAuthUser string `json:"baresip_auth_user,omitempty"` // ^\+?[a-zA-Z0-9_.\-!~*'()]* + BaresipEnabled bool `json:"baresip_enabled,omitempty"` + BaresipExtension string `json:"baresip_extension,omitempty"` // ^\+?[a-zA-Z0-9_.\-!~*'()]* + ConfigNetwork DeviceConfigNetwork `json:"config_network,omitempty"` + DPIEnabled bool `json:"dpi_enabled,omitempty"` + Disabled bool `json:"disabled,omitempty"` + Dot1XFallbackNetworkID string `json:"dot1x_fallback_networkconf_id,omitempty"` // [\d\w]+| + Dot1XPortctrlEnabled bool `json:"dot1x_portctrl_enabled,omitempty"` + EtherLighting DeviceEtherLighting `json:"ether_lighting,omitempty"` + EthernetOverrides []DeviceEthernetOverrides `json:"ethernet_overrides,omitempty"` + FlowctrlEnabled bool `json:"flowctrl_enabled,omitempty"` + GatewayVrrpMode string `json:"gateway_vrrp_mode,omitempty"` // primary|secondary + GatewayVrrpPriority int `json:"gateway_vrrp_priority,omitempty"` // [1-9][0-9]|[1-9][0-9][0-9] + GreenApEnabled bool `json:"green_ap_enabled,omitempty"` + HeightInMeters float64 `json:"heightInMeters,omitempty"` + Hostname string `json:"hostname,omitempty"` // .{1,128} + JumboframeEnabled bool `json:"jumboframe_enabled,omitempty"` + LcmBrightness int `json:"lcm_brightness,omitempty"` // [1-9]|[1-9][0-9]|100 + LcmBrightnessOverride bool `json:"lcm_brightness_override,omitempty"` + LcmIDleTimeout int `json:"lcm_idle_timeout,omitempty"` // [1-9][0-9]|[1-9][0-9][0-9]|[1-2][0-9][0-9][0-9]|3[0-5][0-9][0-9]|3600 + LcmIDleTimeoutOverride bool `json:"lcm_idle_timeout_override,omitempty"` + LcmNightModeBegins string `json:"lcm_night_mode_begins,omitempty"` // (^$)|(^(0[1-9])|(1[0-9])|(2[0-3])):([0-5][0-9]$) + LcmNightModeEnds string `json:"lcm_night_mode_ends,omitempty"` // (^$)|(^(0[1-9])|(1[0-9])|(2[0-3])):([0-5][0-9]$) + LcmOrientationOverride int `json:"lcm_orientation_override,omitempty"` // 0|90|180|270 + LcmSettingsRestrictedAccess bool `json:"lcm_settings_restricted_access,omitempty"` + LcmTrackerEnabled bool `json:"lcm_tracker_enabled,omitempty"` + LcmTrackerSeed string `json:"lcm_tracker_seed,omitempty"` // .{0,50} + LedOverride string `json:"led_override,omitempty"` // default|on|off + LedOverrideColor string `json:"led_override_color,omitempty"` // ^#(?:[0-9a-fA-F]{3}){1,2}$ + LedOverrideColorBrightness int `json:"led_override_color_brightness,omitempty"` // ^[0-9][0-9]?$|^100$ + Locked bool `json:"locked,omitempty"` + LowpfmodeOverride bool `json:"lowpfmode_override,omitempty"` + LteApn string `json:"lte_apn,omitempty"` // .{1,128} + LteAuthType string `json:"lte_auth_type,omitempty"` // PAP|CHAP|PAP-CHAP|NONE + LteDataLimitEnabled bool `json:"lte_data_limit_enabled,omitempty"` + LteDataWarningEnabled bool `json:"lte_data_warning_enabled,omitempty"` + LteExtAnt bool `json:"lte_ext_ant,omitempty"` + LteHardLimit int `json:"lte_hard_limit,omitempty"` + LtePassword string `json:"lte_password,omitempty"` + LtePoe bool `json:"lte_poe,omitempty"` + LteRoamingAllowed bool `json:"lte_roaming_allowed,omitempty"` + LteSimPin int `json:"lte_sim_pin,omitempty"` + LteSoftLimit int `json:"lte_soft_limit,omitempty"` + LteUsername string `json:"lte_username,omitempty"` + MapID string `json:"map_id,omitempty"` + MeshStaVapEnabled bool `json:"mesh_sta_vap_enabled,omitempty"` + MgmtNetworkID string `json:"mgmt_network_id,omitempty"` // [\d\w]+ + Model string `json:"model,omitempty"` + Name string `json:"name,omitempty"` // .{0,128} + OutdoorModeOverride string `json:"outdoor_mode_override,omitempty"` // default|on|off + OutletEnabled bool `json:"outlet_enabled,omitempty"` + OutletOverrides []DeviceOutletOverrides `json:"outlet_overrides,omitempty"` + OutletPowerCycleEnabled bool `json:"outlet_power_cycle_enabled,omitempty"` + PeerToPeerMode string `json:"peer_to_peer_mode,omitempty"` // ap|sta + PoeMode string `json:"poe_mode,omitempty"` // auto|pasv24|passthrough|off + PortOverrides []DevicePortOverrides `json:"port_overrides"` + 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"` + 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 + RpsOverride DeviceRpsOverride `json:"rps_override,omitempty"` + 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|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"` + Type string `json:"type,omitempty"` + UbbPairName string `json:"ubb_pair_name,omitempty"` // .{1,128} + Volume int `json:"volume,omitempty"` // [0-9]|[1-9][0-9]|100 + X float64 `json:"x,omitempty"` + XBaresipPassword string `json:"x_baresip_password,omitempty"` // ^[a-zA-Z0-9_.\-!~*'()]* + Y float64 `json:"y,omitempty"` } func (dst *Device) UnmarshalJSON(b []byte) error { @@ -114,6 +117,7 @@ func (dst *Device) UnmarshalJSON(b []byte) error { GatewayVrrpPriority emptyStringInt `json:"gateway_vrrp_priority"` LcmBrightness emptyStringInt `json:"lcm_brightness"` LcmIDleTimeout emptyStringInt `json:"lcm_idle_timeout"` + LcmOrientationOverride emptyStringInt `json:"lcm_orientation_override"` LedOverrideColorBrightness emptyStringInt `json:"led_override_color_brightness"` LteExtAnt booleanishString `json:"lte_ext_ant"` LteHardLimit emptyStringInt `json:"lte_hard_limit"` @@ -136,6 +140,7 @@ func (dst *Device) UnmarshalJSON(b []byte) error { dst.GatewayVrrpPriority = int(aux.GatewayVrrpPriority) dst.LcmBrightness = int(aux.LcmBrightness) dst.LcmIDleTimeout = int(aux.LcmIDleTimeout) + dst.LcmOrientationOverride = int(aux.LcmOrientationOverride) dst.LedOverrideColorBrightness = int(aux.LedOverrideColorBrightness) dst.LteExtAnt = bool(aux.LteExtAnt) dst.LteHardLimit = int(aux.LteHardLimit) @@ -176,29 +181,10 @@ func (dst *DeviceConfigNetwork) UnmarshalJSON(b []byte) error { return nil } -type DeviceConnectedBatteryOverrides struct { - MAC string `json:"mac,omitempty"` // ^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$ -} - -func (dst *DeviceConnectedBatteryOverrides) UnmarshalJSON(b []byte) error { - type Alias DeviceConnectedBatteryOverrides - aux := &struct { - *Alias - }{ - Alias: (*Alias)(dst), - } - - err := json.Unmarshal(b, &aux) - if err != nil { - return fmt.Errorf("unable to unmarshal alias: %w", err) - } - - return nil -} - 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 } @@ -282,12 +268,13 @@ type DevicePortOverrides struct { Isolation bool `json:"isolation,omitempty"` LldpmedEnabled bool `json:"lldpmed_enabled,omitempty"` LldpmedNotifyEnabled bool `json:"lldpmed_notify_enabled,omitempty"` - MirrorPortIDX int `json:"mirror_port_idx,omitempty"` // [1-9]|[1-4][0-9]|5[0-2] + MirrorPortIDX int `json:"mirror_port_idx,omitempty"` // [1-9]|[1-4][0-9]|5[0-6] + MulticastRouterNetworkIDs []string `json:"multicast_router_networkconf_ids,omitempty"` NATiveNetworkID string `json:"native_networkconf_id,omitempty"` Name string `json:"name,omitempty"` // .{0,128} OpMode string `json:"op_mode,omitempty"` // switch|mirror|aggregate PoeMode string `json:"poe_mode,omitempty"` // auto|pasv24|passthrough|off - PortIDX int `json:"port_idx,omitempty"` // [1-9]|[1-4][0-9]|5[0-2] + PortIDX int `json:"port_idx,omitempty"` // [1-9]|[1-4][0-9]|5[0-6] PortKeepaliveEnabled bool `json:"port_keepalive_enabled,omitempty"` PortProfileID string `json:"portconf_id,omitempty"` // [\d\w]+ PortSecurityEnabled bool `json:"port_security_enabled,omitempty"` @@ -312,8 +299,6 @@ type DevicePortOverrides struct { StpPortMode bool `json:"stp_port_mode,omitempty"` TaggedVLANMgmt string `json:"tagged_vlan_mgmt,omitempty"` // auto|block_all|custom VoiceNetworkID string `json:"voice_networkconf_id,omitempty"` - - PortPoe *bool `json:"port_poe,omitempty"` } func (dst *DevicePortOverrides) UnmarshalJSON(b []byte) error { diff --git a/unifi/firewall_rule.generated.go b/unifi/firewall_rule.generated.go index f9852c0..4e08e20 100644 --- a/unifi/firewall_rule.generated.go +++ b/unifi/firewall_rule.generated.go @@ -26,7 +26,6 @@ type FirewallRule struct { NoEdit bool `json:"attr_no_edit,omitempty"` Action string `json:"action,omitempty"` // drop|reject|accept - Contiguous bool `json:"contiguous"` DstAddress string `json:"dst_address,omitempty"` DstAddressIPV6 string `json:"dst_address_ipv6,omitempty"` DstFirewallGroupIDs []string `json:"dst_firewallgroup_ids,omitempty"` // [\d\w]+ @@ -38,8 +37,6 @@ type FirewallRule struct { ICMPv6Typename string `json:"icmpv6_typename"` // ^$|address-unreachable|bad-header|beyond-scope|communication-prohibited|destination-unreachable|echo-reply|echo-request|failed-policy|neighbor-advertisement|neighbor-solicitation|no-route|packet-too-big|parameter-problem|port-unreachable|redirect|reject-route|router-advertisement|router-solicitation|time-exceeded|ttl-zero-during-reassembly|ttl-zero-during-transit|unknown-header-type|unknown-option IPSec string `json:"ipsec"` // match-ipsec|match-none|^$ Logging bool `json:"logging"` - MonthDays string `json:"monthdays"` // ^$|^(([1-9]|[12][0-9]|3[01])(,([1-9]|[12][0-9]|3[01])){0,30})$ - MonthDaysNegate bool `json:"monthdays_negate"` Name string `json:"name,omitempty"` // .{1,128} Protocol string `json:"protocol"` // ^$|all|([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])|tcp_udp|ah|ax.25|dccp|ddp|egp|eigrp|encap|esp|etherip|fc|ggp|gre|hip|hmp|icmp|idpr-cmtp|idrp|igmp|igp|ip|ipcomp|ipencap|ipip|ipv6|ipv6-frag|ipv6-icmp|ipv6-nonxt|ipv6-opts|ipv6-route|isis|iso-tp4|l2tp|manet|mobility-header|mpls-in-ip|ospf|pim|pup|rdp|rohc|rspf|rsvp|sctp|shim6|skip|st|tcp|udp|udplite|vmtp|vrrp|wesp|xns-idp|xtp ProtocolMatchExcepted bool `json:"protocol_match_excepted"` @@ -54,17 +51,10 @@ type FirewallRule struct { SrcNetworkID string `json:"src_networkconf_id"` // [\d\w]+|^$ SrcNetworkType string `json:"src_networkconf_type,omitempty"` // ADDRv4|NETv4 SrcPort string `json:"src_port,omitempty"` - StartDate string `json:"startdate"` // ^$|^(20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$ - StartTime string `json:"starttime"` // ^$|^(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$ StateEstablished bool `json:"state_established"` StateInvalid bool `json:"state_invalid"` StateNew bool `json:"state_new"` StateRelated bool `json:"state_related"` - StopDate string `json:"stopdate"` // ^$|^(20[0-9]{2}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$ - StopTime string `json:"stoptime"` // ^$|^(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$ - UTC bool `json:"utc"` - Weekdays string `json:"weekdays"` // ^$|^((Mon|Tue|Wed|Thu|Fri|Sat|Sun)(,(Mon|Tue|Wed|Thu|Fri|Sat|Sun)){0,6})$ - WeekdaysNegate bool `json:"weekdays_negate"` } func (dst *FirewallRule) UnmarshalJSON(b []byte) error { diff --git a/unifi/network.generated.go b/unifi/network.generated.go index f298225..520f299 100644 --- a/unifi/network.generated.go +++ b/unifi/network.generated.go @@ -75,15 +75,18 @@ type Network struct { DomainName string `json:"domain_name"` // (?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?