-
Notifications
You must be signed in to change notification settings - Fork 3
/
model.go
39 lines (31 loc) · 1022 Bytes
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package pricing
import (
"fmt"
"github.com/RedisLabs/rediscloud-go-api/internal"
)
type ListPricingResponse struct {
Pricing []*Pricing `json:"pricing,omitempty"`
}
func (o ListPricingResponse) String() string {
return internal.ToString(o)
}
type Pricing struct {
DatabaseName *string `json:"databaseName,omitempty"`
Type *string `json:"type,omitempty"`
TypeDetails *string `json:"typeDetails,omitempty"`
Quantity *int `json:"quantity,omitempty"`
QuantityMeasurement *string `json:"quantityMeasurement,omitempty"`
PricePerUnit *float64 `json:"pricePerUnit,omitempty"`
PriceCurrency *string `json:"priceCurrency,omitempty"`
PricePeriod *string `json:"pricePeriod,omitempty"`
Region *string `json:"region,omitempty"`
}
func (o Pricing) String() string {
return internal.ToString(o)
}
type NotFound struct {
subId int
}
func (f *NotFound) Error() string {
return fmt.Sprintf("subscription %d not found", f.subId)
}