Skip to content

Commit 7e8516e

Browse files
committed
Rename Label field to VLANLabel to align with API attribute naming
1 parent d3eda89 commit 7e8516e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interfaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ type VPCInterfaceIPv4Range struct {
8383
}
8484

8585
type VLANInterface struct {
86-
Label string `json:"vlan_label"`
86+
VLANLabel string `json:"vlan_label"`
8787
IPAMAddress *string `json:"ipam_address,omitempty"`
8888
}
8989

test/unit/interface_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestInterface_Get(t *testing.T) {
3030
assert.Equal(t, 123, iface.ID)
3131
assert.Equal(t, 1, iface.Version)
3232
assert.Equal(t, false, *iface.DefaultRoute.IPv4)
33-
assert.Equal(t, "my_vlan", iface.VLAN.Label)
33+
assert.Equal(t, "my_vlan", iface.VLAN.VLANLabel)
3434
}
3535

3636
func TestInterface_List(t *testing.T) {

0 commit comments

Comments
 (0)