File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
// Pricing specifies pricing information for various resources.
10
10
type Pricing struct {
11
- Image ImagePricing
11
+ Image ImagePricing
12
+ // Deprecated: [Pricing.FloatingIP] is deprecated, use [Pricing.FloatingIPs] instead.
12
13
FloatingIP FloatingIPPricing
13
14
FloatingIPs []FloatingIPTypePricing
14
15
PrimaryIPs []PrimaryIPPricing
Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ package schema
2
2
3
3
// Pricing defines the schema for pricing information.
4
4
type Pricing struct {
5
- Currency string `json:"currency"`
6
- VATRate string `json:"vat_rate"`
7
- Image PricingImage `json:"image"`
5
+ Currency string `json:"currency"`
6
+ VATRate string `json:"vat_rate"`
7
+ Image PricingImage `json:"image"`
8
+ // Deprecated: [Pricing.FloatingIP] is deprecated, use [Pricing.FloatingIPs] instead.
8
9
FloatingIP PricingFloatingIP `json:"floating_ip"`
9
10
FloatingIPs []PricingFloatingIPType `json:"floating_ips"`
10
11
PrimaryIPs []PricingPrimaryIP `json:"primary_ips"`
Original file line number Diff line number Diff line change @@ -658,8 +658,8 @@ func imagePricingFromSchema(s schema.Pricing) ImagePricing {
658
658
func floatingIPPricingFromSchema (s schema.Pricing ) FloatingIPPricing {
659
659
return FloatingIPPricing {
660
660
Monthly : Price {
661
- Net : s .FloatingIP .PriceMonthly .Net ,
662
- Gross : s .FloatingIP .PriceMonthly .Gross ,
661
+ Net : s .FloatingIP .PriceMonthly .Net , // nolint:staticcheck // Field is deprecated, but removal is not planned
662
+ Gross : s .FloatingIP .PriceMonthly .Gross , // nolint:staticcheck // Field is deprecated, but removal is not planned
663
663
Currency : s .Currency ,
664
664
VATRate : s .VATRate ,
665
665
},
You can’t perform that action at this time.
0 commit comments