diff --git a/.changelog/2126.txt b/.changelog/2126.txt new file mode 100644 index 00000000000..47770bd2eac --- /dev/null +++ b/.changelog/2126.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +teams_accounts: Add `use_zt_virtual_ip` attribute +``` \ No newline at end of file diff --git a/teams_accounts.go b/teams_accounts.go index a027dbee9b7..b13ad1bf066 100644 --- a/teams_accounts.go +++ b/teams_accounts.go @@ -131,9 +131,10 @@ type TeamsLoggingSettings struct { } type TeamsDeviceSettings struct { - GatewayProxyEnabled bool `json:"gateway_proxy_enabled"` - GatewayProxyUDPEnabled bool `json:"gateway_udp_proxy_enabled"` - RootCertificateInstallationEnabled bool `json:"root_certificate_installation_enabled"` + GatewayProxyEnabled bool `json:"gateway_proxy_enabled"` + GatewayProxyUDPEnabled bool `json:"gateway_udp_proxy_enabled"` + RootCertificateInstallationEnabled bool `json:"root_certificate_installation_enabled"` + UseZTVirtualIP *bool `json:"use_zt_virtual_ip"` } type TeamsDeviceSettingsResponse struct { diff --git a/teams_accounts_test.go b/teams_accounts_test.go index 10f4807a2f7..cf044f6abb9 100644 --- a/teams_accounts_test.go +++ b/teams_accounts_test.go @@ -289,7 +289,7 @@ func TestTeamsAccountGetDeviceConfiguration(t *testing.T) { "success": true, "errors": [], "messages": [], - "result": {"gateway_proxy_enabled": true,"gateway_udp_proxy_enabled":false, "root_certificate_installation_enabled":true} + "result": {"gateway_proxy_enabled": true,"gateway_udp_proxy_enabled":false, "root_certificate_installation_enabled":true, "use_zt_virtual_ip":false} }`) } @@ -302,6 +302,7 @@ func TestTeamsAccountGetDeviceConfiguration(t *testing.T) { GatewayProxyEnabled: true, GatewayProxyUDPEnabled: false, RootCertificateInstallationEnabled: true, + UseZTVirtualIP: BoolPtr(false), }) } } @@ -317,7 +318,7 @@ func TestTeamsAccountUpdateDeviceConfiguration(t *testing.T) { "success": true, "errors": [], "messages": [], - "result": {"gateway_proxy_enabled": true,"gateway_udp_proxy_enabled":true, "root_certificate_installation_enabled":true} + "result": {"gateway_proxy_enabled": true,"gateway_udp_proxy_enabled":true, "root_certificate_installation_enabled":true, "use_zt_virtual_ip":true} }`) } @@ -327,6 +328,7 @@ func TestTeamsAccountUpdateDeviceConfiguration(t *testing.T) { GatewayProxyUDPEnabled: true, GatewayProxyEnabled: true, RootCertificateInstallationEnabled: true, + UseZTVirtualIP: BoolPtr(true), }) if assert.NoError(t, err) { @@ -334,6 +336,7 @@ func TestTeamsAccountUpdateDeviceConfiguration(t *testing.T) { GatewayProxyEnabled: true, GatewayProxyUDPEnabled: true, RootCertificateInstallationEnabled: true, + UseZTVirtualIP: BoolPtr(true), }) } }