equinixmetal-archive / packngo

[Deprecated] A Golang client for the Equinix Metal API. (Packet is now Equinix Metal)
https://deploy.equinix.com/labs/equinix-sdk-go/
Other
79 stars 53 forks source link

SpotMarketRequest does not include Parameters #277

Open displague opened 3 years ago

displague commented 3 years ago

SpotMarketRequest embeds SpotMarketRequestCreateRequest which includes Parameters.

This makes it seem like smr.Parameters should be available, as in:

smr := client.SpotMarketRequest.Get(id, nil)
fmt.Println(smr.Parameters.OperatingSystem)

However, this is not the case. Parameters is not returned by the API and should not be included in the SpotMarketRequest type.

Perhaps the API could be changed upstream to support this?