From fa5012f42af8dfe83fffc6277ef954b2829c5cdd Mon Sep 17 00:00:00 2001 From: James Stephenson Date: Wed, 2 Sep 2020 17:37:16 -0400 Subject: [PATCH] Updated types to 5.14.23 --- unifi/device.generated.go | 11 +- unifi/firewall_rule.generated.go | 4 +- unifi/hotspot_2_conf.generated.go | 94 +++++---- unifi/network.generated.go | 280 +++++++++++++------------- unifi/port_conf.generated.go | 1 + unifi/setting_ips.generated.go | 11 +- unifi/setting_super_mgmt.generated.go | 2 +- unifi/wlan.generated.go | 9 +- 8 files changed, 226 insertions(+), 186 deletions(-) diff --git a/unifi/device.generated.go b/unifi/device.generated.go index 2041187..270cbb9 100644 --- a/unifi/device.generated.go +++ b/unifi/device.generated.go @@ -47,15 +47,17 @@ type Device struct { 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"` + LteApn string `json:"lte_apn,omitempty"` // .{1,128} LteExtAnt bool `json:"lte_ext_ant,omitempty"` LtePoe bool `json:"lte_poe,omitempty"` + LteSimPin int `json:"lte_sim_pin,omitempty"` LteSoftLimit int `json:"lte_soft_limit,omitempty"` MapID string `json:"map_id,omitempty"` MeshStaVapEnabled bool `json:"mesh_sta_vap_enabled,omitempty"` MgmtNetworkID string `json:"mgmt_network_id,omitempty"` // [\d\w]+ Name string `json:"name,omitempty"` // .{1,128} OutdoorModeOverride string `json:"outdoor_mode_override,omitempty"` // default|on|off - OutletCycleEnabled bool `json:"outlet_cycle_enabled,omitempty"` + OutletEnabled bool `json:"outlet_enabled,omitempty"` OutletOverrides []Device_OutletOverrides `json:"outlet_overrides,omitempty"` PortOverrides []Device_PortOverrides `json:"port_overrides,omitempty"` PowerSourceCtrl string `json:"power_source_ctrl,omitempty"` // auto|8023af|8023at|8023bt-type3|8023bt-type4|pasv24|poe-injector|ac|adapter|dc|rps @@ -94,14 +96,17 @@ type Device_EthernetOverrides struct { } type Device_OutletOverrides struct { - Index int `json:"index,omitempty"` - RelayState bool `json:"relay_state,omitempty"` + CycleEnabled bool `json:"cycle_enabled,omitempty"` + Index int `json:"index,omitempty"` + Name string `json:"name,omitempty"` // .{0,128} + RelayState bool `json:"relay_state,omitempty"` } type Device_PortOverrides struct { AggregateNumPorts int `json:"aggregate_num_ports,omitempty"` // [2-6] Autoneg bool `json:"autoneg,omitempty"` Dot1XCtrl string `json:"dot1x_ctrl,omitempty"` // auto|force_authorized|force_unauthorized|mac_based|multi_host + Dot1XIDleTimeout int `json:"dot1x_idle_timeout,omitempty"` // [0-9]|[1-9][0-9]{1,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5] EgressRateLimitKbps int `json:"egress_rate_limit_kbps,omitempty"` // 6[4-9]|[7-9][0-9]|[1-9][0-9]{2,6} EgressRateLimitKbpsEnabled bool `json:"egress_rate_limit_kbps_enabled,omitempty"` FullDuplex bool `json:"full_duplex,omitempty"` diff --git a/unifi/firewall_rule.generated.go b/unifi/firewall_rule.generated.go index 0a38509..04bf00d 100644 --- a/unifi/firewall_rule.generated.go +++ b/unifi/firewall_rule.generated.go @@ -32,8 +32,8 @@ type FirewallRule struct { DstNetworkType string `json:"dst_networkconf_type,omitempty"` // ADDRv4|NETv4 DstPort string `json:"dst_port,omitempty"` Enabled bool `json:"enabled"` - ICMPTypename string `json:"icmp_typename"` // ^$|communication-prohibited|destination-unreachable|echo-reply|echo-request|fragmentation-needed|host-precedence-violation|host-prohibited|host-redirect|host-unknown|host-unreachable|ip-header-bad|network-prohibited|network-redirect|network-unknown|network-unreachable|parameter-problem|port-unreachable|protocol-unreachable|redirect|required-option-missing|router-advertisement|router-solicitation|source-route-failed|timestamp-reply|timestamp-request|TOS-host-redirect|TOS-host-unreachable|TOS-network-redirect|TOS-network-unreachable|ttl-exceeded|ttl-zero-during-reassembly|ttl-zero-during-transit - ICMPv6Typename string `json:"icmpv6_typename"` // ^$|address-unreachable|bad-header|communication-prohibited|destination-unreachable|echo-reply|echo-request|neighbor-advertisement|neighbor-solicitation|no-route|packet-too-big|parameter-problem|port-unreachable|redirect|router-advertisement|router-solicitation|time-exceeded|ttl-zero-during-reassembly|ttl-zero-during-transit|unknown-header-type|unknown-option + ICMPTypename string `json:"icmp_typename"` // ^$|address-mask-reply|address-mask-request|any|communication-prohibited|destination-unreachable|echo-reply|echo-request|fragmentation-needed|host-precedence-violation|host-prohibited|host-redirect|host-unknown|host-unreachable|ip-header-bad|network-prohibited|network-redirect|network-unknown|network-unreachable|parameter-problem|port-unreachable|precedence-cutoff|protocol-unreachable|redirect|required-option-missing|router-advertisement|router-solicitation|source-quench|source-route-failed|time-exceeded|timestamp-reply|timestamp-request|TOS-host-redirect|TOS-host-unreachable|TOS-network-redirect|TOS-network-unreachable|ttl-zero-during-reassembly|ttl-zero-during-transit + 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})$ diff --git a/unifi/hotspot_2_conf.generated.go b/unifi/hotspot_2_conf.generated.go index 88f922d..a783ea8 100644 --- a/unifi/hotspot_2_conf.generated.go +++ b/unifi/hotspot_2_conf.generated.go @@ -23,48 +23,61 @@ type Hotspot2Conf struct { NoDelete bool `json:"attr_no_delete,omitempty"` NoEdit bool `json:"attr_no_edit,omitempty"` - ApIsolate bool `json:"ap_isolate"` - Capab []Hotspot2Conf_Capab `json:"capab,omitempty"` - CellularNetworkList []Hotspot2Conf_CellularNetworkList `json:"cellular_network_list,omitempty"` - DeauthReqTimeout int `json:"deauth_req_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 - DisableDgaf bool `json:"disable_dgaf"` - DomainNameList []string `json:"domain_name_list,omitempty"` // .{1,128} - FriendlyName []Hotspot2Conf_FriendlyName `json:"friendly_name,omitempty"` - GasComebackDelay int `json:"gas_comeback_delay,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]|300 - Hessid string `json:"hessid"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$|^$ - Icons []Hotspot2Conf_Icons `json:"icons,omitempty"` - MetricsDownlinkLoad int `json:"metrics_downlink_load,omitempty"` - MetricsDownlinkSpeed int `json:"metrics_downlink_speed,omitempty"` - MetricsInfo string `json:"metrics_info,omitempty"` // [0-9A-Fa-f]{1,2} - MetricsMeasurement int `json:"metrics_measurement,omitempty"` - MetricsStatus bool `json:"metrics_status"` - MetricsUplinkLoad int `json:"metrics_uplink_load,omitempty"` - MetricsUplinkSpeed int `json:"metrics_uplink_speed,omitempty"` - NaiRealmList []Hotspot2Conf_NaiRealmList `json:"nai_realm_list,omitempty"` - Name string `json:"name,omitempty"` // .{1,128} - NetworkAccessAsra bool `json:"network_access_asra"` - NetworkAccessEsr bool `json:"network_access_esr"` - NetworkAccessInternet bool `json:"network_access_internet"` - NetworkAccessUesa bool `json:"network_access_uesa"` - NetworkType int `json:"network_type,omitempty"` // 0|1|2|3|4|5|14|15 - Osu []Hotspot2Conf_Osu `json:"osu,omitempty"` - OsuSSID string `json:"osu_ssid"` - P2P bool `json:"p2p"` - ProxyArp bool `json:"proxy_arp"` - QOSMapDcsp []Hotspot2Conf_QOSMapDcsp `json:"qos_map_dcsp,omitempty"` - QOSMapExceptions []Hotspot2Conf_QOSMapExceptions `json:"qos_map_exceptions,omitempty"` - QOSMapStatus bool `json:"qos_map_status"` - RoamingConsortiumList []Hotspot2Conf_RoamingConsortiumList `json:"roaming_consortium_list,omitempty"` - TCFilename string `json:"t_c_filename,omitempty"` // .{1,256} - TCTimestamp int `json:"t_c_timestamp,omitempty"` - VenueGroup int `json:"venue_group,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11 - VenueName []Hotspot2Conf_VenueName `json:"venue_name,omitempty"` - VenueType int `json:"venue_type,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15 + AnqpDomainID int `json:"anqp_domain_id,omitempty"` // ^0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]|$ + Capab []Hotspot2Conf_Capab `json:"capab,omitempty"` + CellularNetworkList []Hotspot2Conf_CellularNetworkList `json:"cellular_network_list,omitempty"` + DeauthReqTimeout int `json:"deauth_req_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 + DisableDgaf bool `json:"disable_dgaf"` + DomainNameList []string `json:"domain_name_list,omitempty"` // .{1,128} + FriendlyName []Hotspot2Conf_FriendlyName `json:"friendly_name,omitempty"` + GasAdvanced bool `json:"gas_advanced"` + GasComebackDelay int `json:"gas_comeback_delay,omitempty"` + GasFragLimit int `json:"gas_frag_limit,omitempty"` + Hessid string `json:"hessid"` // ^([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})$|^$ + HessidUsed bool `json:"hessid_used"` + IPaddrTypeAvailV4 int `json:"ipaddr_type_avail_v4,omitempty"` // 0|1|2|3|4|5|6|7 + IPaddrTypeAvailV6 int `json:"ipaddr_type_avail_v6,omitempty"` // 0|1|2 + Icons []Hotspot2Conf_Icons `json:"icons,omitempty"` + MetricsDownlinkLoad int `json:"metrics_downlink_load,omitempty"` + MetricsDownlinkLoadSet bool `json:"metrics_downlink_load_set"` + MetricsDownlinkSpeed int `json:"metrics_downlink_speed,omitempty"` + MetricsDownlinkSpeedSet bool `json:"metrics_downlink_speed_set"` + MetricsInfoAtCapacity bool `json:"metrics_info_at_capacity"` + MetricsInfoLinkStatus string `json:"metrics_info_link_status,omitempty"` // up|down|test + MetricsInfoSymmetric bool `json:"metrics_info_symmetric"` + MetricsMeasurement int `json:"metrics_measurement,omitempty"` + MetricsMeasurementSet bool `json:"metrics_measurement_set"` + MetricsStatus bool `json:"metrics_status"` + MetricsUplinkLoad int `json:"metrics_uplink_load,omitempty"` + MetricsUplinkLoadSet bool `json:"metrics_uplink_load_set"` + MetricsUplinkSpeed int `json:"metrics_uplink_speed,omitempty"` + MetricsUplinkSpeedSet bool `json:"metrics_uplink_speed_set"` + NaiRealmList []Hotspot2Conf_NaiRealmList `json:"nai_realm_list,omitempty"` + Name string `json:"name,omitempty"` // .{1,128} + NetworkAccessAsra bool `json:"network_access_asra"` + NetworkAccessEsr bool `json:"network_access_esr"` + NetworkAccessInternet bool `json:"network_access_internet"` + NetworkAccessUesa bool `json:"network_access_uesa"` + NetworkAuthType int `json:"network_auth_type,omitempty"` // -1|0|1|2|3 + NetworkAuthUrl string `json:"network_auth_url,omitempty"` + NetworkType int `json:"network_type,omitempty"` // 0|1|2|3|4|5|14|15 + Osu []Hotspot2Conf_Osu `json:"osu,omitempty"` + OsuSSID string `json:"osu_ssid"` + QOSMapDcsp []Hotspot2Conf_QOSMapDcsp `json:"qos_map_dcsp,omitempty"` + QOSMapExceptions []Hotspot2Conf_QOSMapExceptions `json:"qos_map_exceptions,omitempty"` + QOSMapStatus bool `json:"qos_map_status"` + RoamingConsortiumList []Hotspot2Conf_RoamingConsortiumList `json:"roaming_consortium_list,omitempty"` + SaveTimestamp string `json:"save_timestamp,omitempty"` + TCFilename string `json:"t_c_filename,omitempty"` // .{1,256} + TCTimestamp int `json:"t_c_timestamp,omitempty"` + VenueGroup int `json:"venue_group,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11 + VenueName []Hotspot2Conf_VenueName `json:"venue_name,omitempty"` + VenueType int `json:"venue_type,omitempty"` // 0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15 } type Hotspot2Conf_Capab struct { - Port string `json:"port,omitempty"` // (([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])|([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])-([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5]))+(,([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])|,([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])-([1-9][0-9]{0,3}|[1-5][0-9]{4}|[6][0-4][0-9]{3}|[6][5][0-4][0-9]{2}|[6][5][5][0-2][0-9]|[6][5][5][3][0-5])){0,14} - Protocol string `json:"protocol,omitempty"` // icmp|tcp_udp|tcp|udp + Port int `json:"port,omitempty"` // ^(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])|$ + Protocol string `json:"protocol,omitempty"` // icmp|tcp_udp|tcp|udp|esp Status string `json:"status,omitempty"` // closed|open|unknown } @@ -137,7 +150,8 @@ type Hotspot2Conf_RoamingConsortiumList struct { type Hotspot2Conf_VenueName struct { Language string `json:"language,omitempty"` // [a-z]{3} - Name string `json:"name,omitempty"` // .{1,128} + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` } func (c *Client) listHotspot2Conf(ctx context.Context, site string) ([]Hotspot2Conf, error) { diff --git a/unifi/network.generated.go b/unifi/network.generated.go index 114f34e..395a090 100644 --- a/unifi/network.generated.go +++ b/unifi/network.generated.go @@ -23,142 +23,150 @@ type Network struct { NoDelete bool `json:"attr_no_delete,omitempty"` NoEdit bool `json:"attr_no_edit,omitempty"` - DHCPDBootEnabled bool `json:"dhcpd_boot_enabled"` - DHCPDBootFilename string `json:"dhcpd_boot_filename,omitempty"` // .{1,256} - DHCPDBootServer string `json:"dhcpd_boot_server"` // ^(([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])$|^$|(?=^.{3,253}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?