Skip to content

Commit

Permalink
fix: update NetworkSubnetType constants (hetznercloud#499)
Browse files Browse the repository at this point in the history
- Update the properties documentation
- Add deprecation warning for long deprecated `NetworkSubnetTypeServer`.
  • Loading branch information
jooola authored Aug 5, 2024
1 parent 26fe9a9 commit ce497fe
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions hcloud/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@ type NetworkSubnetType string

// List of available network subnet types.
const (
NetworkSubnetTypeCloud NetworkSubnetType = "cloud"
NetworkSubnetTypeServer NetworkSubnetType = "server"
// Used to connect cloud servers and load balancers.
NetworkSubnetTypeCloud NetworkSubnetType = "cloud"
// Used to connect cloud servers and load balancers.
//
// Deprecated: Use [NetworkSubnetTypeCloud] instead.
NetworkSubnetTypeServer NetworkSubnetType = "server"
// Used to connect cloud servers and load balancers with dedicated servers.
//
// See https://docs.hetzner.com/cloud/networks/connect-dedi-vswitch/
NetworkSubnetTypeVSwitch NetworkSubnetType = "vswitch"
)

Expand Down

0 comments on commit ce497fe

Please sign in to comment.