@@ -24,7 +24,7 @@ type Server struct {
2424 Flavor FlavorStub `json:"flavor"`
2525 Image ImageServerStub `json:"image"`
2626 Volumes []VolumeStub `json:"volumes"`
27- Interfaces []Interface `json:"interfaces"`
27+ Interfaces []ServerInterface `json:"interfaces"`
2828 SSHFingerprints []string `json:"ssh_fingerprints"`
2929 SSHHostKeys []string `json:"ssh_host_keys"`
3030 AntiAfinityWith []ServerStub `json:"anti_affinity_with"`
@@ -65,13 +65,13 @@ type VolumeStub struct {
6565 SizeGB int `json:"size_gb"`
6666}
6767
68- type Interface struct {
69- Type string `json:"type,omitempty"`
70- Network NetworkStub `json:"network,omitempty"`
71- Addresses []Address `json:"addresses,omitempty"`
68+ type ServerInterface struct {
69+ Type string `json:"type,omitempty"`
70+ Network NetworkStub `json:"network,omitempty"`
71+ Addresses []ServerAddress `json:"addresses,omitempty"`
7272}
7373
74- type Address struct {
74+ type ServerAddress struct {
7575 Version int `json:"version"`
7676 Address string `json:"address"`
7777 PrefixLength int `json:"prefix_length"`
@@ -83,38 +83,38 @@ type Address struct {
8383type ServerRequest struct {
8484 ZonalResourceRequest
8585 TaggedResourceRequest
86- Name string `json:"name"`
87- Flavor string `json:"flavor"`
88- Image string `json:"image"`
89- Zone string `json:"zone,omitempty"`
90- VolumeSizeGB int `json:"volume_size_gb,omitempty"`
91- Volumes * []ServerVolumeRequest `json:"volumes,omitempty"`
92- Interfaces * []InterfaceRequest `json:"interfaces,omitempty"`
93- BulkVolumeSizeGB int `json:"bulk_volume_size_gb,omitempty"`
94- SSHKeys []string `json:"ssh_keys"`
95- Password string `json:"password,omitempty"`
96- UsePublicNetwork * bool `json:"use_public_network,omitempty"`
97- UsePrivateNetwork * bool `json:"use_private_network,omitempty"`
98- UseIPV6 * bool `json:"use_ipv6,omitempty"`
99- AntiAffinityWith string `json:"anti_affinity_with,omitempty"`
100- ServerGroups []string `json:"server_groups,omitempty"`
101- UserData string `json:"user_data,omitempty"`
86+ Name string `json:"name"`
87+ Flavor string `json:"flavor"`
88+ Image string `json:"image"`
89+ Zone string `json:"zone,omitempty"`
90+ VolumeSizeGB int `json:"volume_size_gb,omitempty"`
91+ Volumes * []ServerVolumeRequest `json:"volumes,omitempty"`
92+ Interfaces * []ServerInterfaceRequest `json:"interfaces,omitempty"`
93+ BulkVolumeSizeGB int `json:"bulk_volume_size_gb,omitempty"`
94+ SSHKeys []string `json:"ssh_keys"`
95+ Password string `json:"password,omitempty"`
96+ UsePublicNetwork * bool `json:"use_public_network,omitempty"`
97+ UsePrivateNetwork * bool `json:"use_private_network,omitempty"`
98+ UseIPV6 * bool `json:"use_ipv6,omitempty"`
99+ AntiAffinityWith string `json:"anti_affinity_with,omitempty"`
100+ ServerGroups []string `json:"server_groups,omitempty"`
101+ UserData string `json:"user_data,omitempty"`
102102}
103103
104104type ServerUpdateRequest struct {
105105 TaggedResourceRequest
106- Name string `json:"name,omitempty"`
107- Status string `json:"status,omitempty"`
108- Flavor string `json:"flavor,omitempty"`
109- Interfaces * []InterfaceRequest `json:"interfaces,omitempty"`
106+ Name string `json:"name,omitempty"`
107+ Status string `json:"status,omitempty"`
108+ Flavor string `json:"flavor,omitempty"`
109+ Interfaces * []ServerInterfaceRequest `json:"interfaces,omitempty"`
110110}
111111
112112type ServerVolumeRequest struct {
113113 SizeGB int `json:"size_gb,omitempty"`
114114 Type string `json:"type,omitempty"`
115115}
116116
117- type InterfaceRequest struct {
117+ type ServerInterfaceRequest struct {
118118 Network string `json:"network,omitempty"`
119119 Addresses * []AddressRequest `json:"addresses,omitempty"`
120120}
0 commit comments