Skip to content

Commit

Permalink
fix: missing load-balancers property in network schema (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola authored Dec 17, 2024
1 parent 9056ee6 commit 103cf5e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
19 changes: 10 additions & 9 deletions hcloud/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ const (

// Network represents a network in the Hetzner Cloud.
type Network struct {
ID int64
Name string
Created time.Time
IPRange *net.IPNet
Subnets []NetworkSubnet
Routes []NetworkRoute
Servers []*Server
Protection NetworkProtection
Labels map[string]string
ID int64
Name string
Created time.Time
IPRange *net.IPNet
Subnets []NetworkSubnet
Routes []NetworkRoute
Servers []*Server
LoadBalancers []*LoadBalancer
Protection NetworkProtection
Labels map[string]string

// ExposeRoutesToVSwitch indicates if the routes from this network should be exposed to the vSwitch connection.
ExposeRoutesToVSwitch bool
Expand Down
1 change: 1 addition & 0 deletions hcloud/schema/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Network struct {
Subnets []NetworkSubnet `json:"subnets"`
Routes []NetworkRoute `json:"routes"`
Servers []int64 `json:"servers"`
LoadBalancers []int64 `json:"load_balancers"`
Protection NetworkProtection `json:"protection"`
Labels map[string]string `json:"labels"`
ExposeRoutesToVSwitch bool `json:"expose_routes_to_vswitch"`
Expand Down
13 changes: 13 additions & 0 deletions hcloud/zz_schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 103cf5e

Please sign in to comment.