Closed apricote closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 71.46%. Comparing base (
2c1a2d6
) to head (4335fdd
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The API has been updated to provide a better insight and more flexibility for displaying the pricing of traffic for servers and load balancers.
In addition to the new fields, the old fields are deprecated and will be set to
null
in the API on 2024-08-05.As far as we could tell they are not widely used in Open Source code, please check if you are using them in any private code. Some linters automatically check for deprecated fields, if you use
golangci-lint
this is provided by thestaticcheck
linter.You can learn more about this change in our changelog.
Upgrading
Server Type Included Traffic
If you were using the field
hcloud.ServerType.IncludedTraffic
, you can now get the information throughhcloud.ServerType.Pricings
:Traffic Prices
If you were using the field
hcloud.Pricing.Traffic
, you can now get the information throughhcloud.Pricing.ServerTypes
orhcloud.Pricing.LoadBalancerTypes
:release-please Info
BEGIN_COMMIT_OVERRIDE feat(server-type): new traffic price fields feat(load-balancer-type): new traffic price fields feat(pricing): mark traffic field as deprecated feat(server-type): mark included traffic field as deprecated END_COMMIT_OVERRIDE