Skip to content

Commit ce497fe

Browse files
authored
fix: update NetworkSubnetType constants (#499)
- Update the properties documentation - Add deprecation warning for long deprecated `NetworkSubnetTypeServer`.
1 parent 26fe9a9 commit ce497fe

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

hcloud/network.go

+9-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,15 @@ type NetworkSubnetType string
2929

3030
// List of available network subnet types.
3131
const (
32-
NetworkSubnetTypeCloud NetworkSubnetType = "cloud"
33-
NetworkSubnetTypeServer NetworkSubnetType = "server"
32+
// Used to connect cloud servers and load balancers.
33+
NetworkSubnetTypeCloud NetworkSubnetType = "cloud"
34+
// Used to connect cloud servers and load balancers.
35+
//
36+
// Deprecated: Use [NetworkSubnetTypeCloud] instead.
37+
NetworkSubnetTypeServer NetworkSubnetType = "server"
38+
// Used to connect cloud servers and load balancers with dedicated servers.
39+
//
40+
// See https://docs.hetzner.com/cloud/networks/connect-dedi-vswitch/
3441
NetworkSubnetTypeVSwitch NetworkSubnetType = "vswitch"
3542
)
3643

0 commit comments

Comments
 (0)