Skip to content

Commit

Permalink
fix: deprecate pricing floating ip field
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Aug 29, 2024
1 parent 743eabb commit 02a36d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion hcloud/pricing.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (

// Pricing specifies pricing information for various resources.
type Pricing struct {
Image ImagePricing
Image ImagePricing
// Deprecated: [Pricing.FloatingIP] is deprecated, use [Pricing.FloatingIPs] instead.
FloatingIP FloatingIPPricing
FloatingIPs []FloatingIPTypePricing
PrimaryIPs []PrimaryIPPricing
Expand Down
7 changes: 4 additions & 3 deletions hcloud/schema/pricing.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package schema

// Pricing defines the schema for pricing information.
type Pricing struct {
Currency string `json:"currency"`
VATRate string `json:"vat_rate"`
Image PricingImage `json:"image"`
Currency string `json:"currency"`
VATRate string `json:"vat_rate"`
Image PricingImage `json:"image"`
// Deprecated: [Pricing.FloatingIP] is deprecated, use [Pricing.FloatingIPs] instead.
FloatingIP PricingFloatingIP `json:"floating_ip"`
FloatingIPs []PricingFloatingIPType `json:"floating_ips"`
PrimaryIPs []PricingPrimaryIP `json:"primary_ips"`
Expand Down

0 comments on commit 02a36d9

Please sign in to comment.