Update to network version 9.0.114
This commit is contained in:
48
unifi/radius_profile.generated.go
generated
48
unifi/radius_profile.generated.go
generated
@@ -25,16 +25,23 @@ type RADIUSProfile struct {
|
||||
NoDelete bool `json:"attr_no_delete,omitempty"`
|
||||
NoEdit bool `json:"attr_no_edit,omitempty"`
|
||||
|
||||
AccountingEnabled bool `json:"accounting_enabled"`
|
||||
AcctServers []RADIUSProfileAcctServers `json:"acct_servers,omitempty"`
|
||||
AuthServers []RADIUSProfileAuthServers `json:"auth_servers,omitempty"`
|
||||
InterimUpdateEnabled bool `json:"interim_update_enabled"`
|
||||
InterimUpdateInterval int `json:"interim_update_interval,omitempty"` // ^([6-9][0-9]|[1-9][0-9]{2,3}|[1-7][0-9]{4}|8[0-5][0-9]{3}|86[0-3][0-9][0-9]|86400)$
|
||||
Name string `json:"name,omitempty"` // .{1,128}
|
||||
UseUsgAcctServer bool `json:"use_usg_acct_server"`
|
||||
UseUsgAuthServer bool `json:"use_usg_auth_server"`
|
||||
VLANEnabled bool `json:"vlan_enabled"`
|
||||
VLANWLANMode string `json:"vlan_wlan_mode,omitempty"` // disabled|optional|required
|
||||
AccountingEnabled bool `json:"accounting_enabled"`
|
||||
AcctServers []RADIUSProfileAcctServers `json:"acct_servers,omitempty"`
|
||||
AuthServers []RADIUSProfileAuthServers `json:"auth_servers,omitempty"`
|
||||
InterimUpdateEnabled bool `json:"interim_update_enabled"`
|
||||
InterimUpdateInterval int `json:"interim_update_interval,omitempty"` // ^([6-9][0-9]|[1-9][0-9]{2,3}|[1-7][0-9]{4}|8[0-5][0-9]{3}|86[0-3][0-9][0-9]|86400)$
|
||||
Name string `json:"name,omitempty"` // .{1,128}
|
||||
TlsEnabled bool `json:"tls_enabled"`
|
||||
UseUsgAcctServer bool `json:"use_usg_acct_server"`
|
||||
UseUsgAuthServer bool `json:"use_usg_auth_server"`
|
||||
VLANEnabled bool `json:"vlan_enabled"`
|
||||
VLANWLANMode string `json:"vlan_wlan_mode,omitempty"` // disabled|optional|required
|
||||
XCaCrts []RADIUSProfileXCaCrts `json:"x_ca_crts,omitempty"`
|
||||
XClientCrt string `json:"x_client_crt,omitempty"`
|
||||
XClientCrtFilename string `json:"x_client_crt_filename,omitempty"`
|
||||
XClientPrivateKey string `json:"x_client_private_key,omitempty"`
|
||||
XClientPrivateKeyFilename string `json:"x_client_private_key_filename,omitempty"`
|
||||
XClientPrivateKeyPassword string `json:"x_client_private_key_password,omitempty"`
|
||||
}
|
||||
|
||||
func (dst *RADIUSProfile) UnmarshalJSON(b []byte) error {
|
||||
@@ -106,6 +113,27 @@ func (dst *RADIUSProfileAuthServers) UnmarshalJSON(b []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
type RADIUSProfileXCaCrts struct {
|
||||
Filename string `json:"filename,omitempty"`
|
||||
XCaCrt string `json:"x_ca_crt,omitempty"`
|
||||
}
|
||||
|
||||
func (dst *RADIUSProfileXCaCrts) UnmarshalJSON(b []byte) error {
|
||||
type Alias RADIUSProfileXCaCrts
|
||||
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
|
||||
}
|
||||
|
||||
func (c *Client) listRADIUSProfile(ctx context.Context, site string) ([]RADIUSProfile, error) {
|
||||
var respBody struct {
|
||||
Meta meta `json:"meta"`
|
||||
|
||||
Reference in New Issue
Block a user