Skip to content

Commit d118d57

Browse files
committed
refactor(lbaaas): remove deprecated NetworkUUID field
1 parent 7be04bb commit d118d57

File tree

5 files changed

+3
-5
lines changed

5 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/)
55

66
## [Unreleased]
77

8+
### Removed
9+
- **Breaking**, Managed Load Balancer: remove deprecated `NetworkUUID` field
10+
811
## [7.0.0]
912

1013
### Added

upcloud/load_balancer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ type LoadBalancer struct {
252252
Name string `json:"name,omitempty"`
253253
Zone string `json:"zone,omitempty"`
254254
Plan string `json:"plan,omitempty"`
255-
NetworkUUID string `json:"network_uuid,omitempty"` // deprecated
256255
Networks []LoadBalancerNetwork `json:"networks,omitempty"`
257256
DNSName string `json:"dns_name,omitempty"` // deprecated
258257
Labels []Label `json:"labels,omitempty"`

upcloud/load_balancer_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ func TestMarshalLoadBalancer(t *testing.T) {
1313
[
1414
{
1515
"name": "example-service",
16-
"network_uuid": "03631160-d57a-4926-ad48-a2f828229dcb",
1716
"operational_state": "running",
1817
"plan": "development",
1918
"configured_status": "started",

upcloud/request/load_balancer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ type CreateLoadBalancerRequest struct {
5353
Name string `json:"name,omitempty"`
5454
Plan string `json:"plan,omitempty"`
5555
Zone string `json:"zone,omitempty"`
56-
NetworkUUID string `json:"network_uuid,omitempty"`
5756
Networks []LoadBalancerNetwork `json:"networks,omitempty"`
5857
ConfiguredStatus upcloud.LoadBalancerConfiguredStatus `json:"configured_status,omitempty"`
5958
Frontends []LoadBalancerFrontend `json:"frontends"`

upcloud/request/load_balancer_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func TestCreateLoadBalancerRequest(t *testing.T) {
5454
"name": "example-service",
5555
"plan": "development",
5656
"zone": "fi-hel1",
57-
"network_uuid": "03631160-d57a-4926-ad48-a2f828229dcb",
5857
"configured_status": "started",
5958
"frontends": [
6059
{
@@ -1392,7 +1391,6 @@ func TestCreateLoadBalancerLabelsRequest(t *testing.T) {
13921391
"name": "example-service",
13931392
"plan": "development",
13941393
"zone": "fi-hel1",
1395-
"network_uuid": "03631160-d57a-4926-ad48-a2f828229dcb",
13961394
"configured_status": "started",
13971395
"frontends": [],
13981396
"backends": [],

0 commit comments

Comments
 (0)