Skip to content

Commit cbfeb96

Browse files
committed
fix: compute instances now implements the correct contract for instance network parameters
1 parent 1c029ef commit cbfeb96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compute/instances.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ type CreateParametersNetwork struct {
9292

9393
// CreateParametersNetworkInterface represents network interface configuration.
9494
type CreateParametersNetworkInterface struct {
95-
Interface *IDOrName `json:"interface,omitempty"`
96-
SecurityGroups *[]CreateParametersNetworkInterfaceSecurityGroupsItem `json:"security_groups,omitempty"`
95+
ID *string `json:"id,omitempty"`
96+
SecurityGroups *[]CreateParametersNetworkInterfaceWithID `json:"security_groups,omitempty"`
9797
}
9898

99-
// CreateParametersNetworkInterfaceSecurityGroupsItem represents a security group item.
100-
type CreateParametersNetworkInterfaceSecurityGroupsItem struct {
101-
Id string `json:"id"`
99+
// CreateParametersNetworkInterfaceWithID represents a security group item.
100+
type CreateParametersNetworkInterfaceWithID struct {
101+
ID string `json:"id"`
102102
}
103103

104104
// IDOrName represents a resource that can be identified by ID or name.

0 commit comments

Comments
 (0)