Skip to content

Commit 4931dc3

Browse files
authored
Merge pull request #24 from serverscom/os-omitempty
omitempty operating_system_id
2 parents bbe8a99 + 9fe3b07 commit 4931dc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ type DedicatedServerCreateInput struct {
231231
Features []string `json:"features,omitempty"`
232232
IPv6 bool `json:"ipv6"`
233233
Hosts []DedicatedServerHostInput `json:"hosts"`
234-
OperatingSystemID *int64 `json:"operating_system_id"`
234+
OperatingSystemID *int64 `json:"operating_system_id,omitempty"`
235235
SSHKeyFingerprints []string `json:"ssh_key_fingerprints,omitempty"`
236236
UserData *string `json:"user_data,omitempty"`
237237
}
@@ -258,7 +258,7 @@ type SBMServerCreateInput struct {
258258
FlavorModelID int64 `json:"sbm_flavor_model_id"`
259259
LocationID int64 `json:"location_id"`
260260
Hosts []SBMServerHostInput `json:"hosts"`
261-
OperatingSystemID *int64 `json:"operating_system_id"`
261+
OperatingSystemID *int64 `json:"operating_system_id,omitempty"`
262262
SSHKeyFingerprints []string `json:"ssh_key_fingerprints,omitempty"`
263263
UserData *string `json:"user_data,omitempty"`
264264
}

0 commit comments

Comments
 (0)