Skip to content

Remove CurrentPrice from properties #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ type IPProperties struct {
// Total minutes the object has been running.
UsagesInMinutes float64 `json:"usage_in_minutes"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`

// List of labels.
Labels []string `json:"labels"`

Expand Down
1 change: 0 additions & 1 deletion ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ func getMockIP(status string) IP {
IP: "192.168.0.1",
DeleteBlock: false,
UsagesInMinutes: 10,
CurrentPrice: 0.9,
Labels: []string{"label"},
Relations: IPRelations{
Loadbalancers: []IPLoadbalancer{
Expand Down
3 changes: 0 additions & 3 deletions isoimage.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ type ISOImageProperties struct {

// The capacity of an ISO image in GB.
Capacity int `json:"capacity"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`
}

// ISOImageRelation represents a list of ISO image-server relations.
Expand Down
1 change: 0 additions & 1 deletion isoimage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ func getMockISOImage(status string) ISOImage {
Private: false,
ChangeTime: dummyTime,
Capacity: 10,
CurrentPrice: 9.99,
}}
return mock
}
Expand Down
3 changes: 0 additions & 3 deletions loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ type LoadBalancerProperties struct {
// Status indicates the status of the object.
Status string `json:"status"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`

// The human-readable name of the location. It supports the full UTF-8 character set, with a maximum of 64 characters.
LocationCountry string `json:"location_country"`

Expand Down
3 changes: 0 additions & 3 deletions paas.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ type PaaSServiceProperties struct {
// Total minutes the object has been running.
UsageInMinutes int `json:"usage_in_minutes"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`

// Defines the date and time of the last object change.
ChangeTime GSTime `json:"change_time"`

Expand Down
1 change: 0 additions & 1 deletion paas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ func getMockPaaSService(status string) PaaSService {
SecurityZoneUUID: "d711fc50-ad96-4070-b769-6fe2bf93792c",
ServiceTemplateUUID: "504e2d11-7255-4712-b744-fcb093a4e613",
UsageInMinutes: 999,
CurrentPrice: 5.789,
ChangeTime: dummyTime,
Status: status,
Name: "test",
Expand Down
3 changes: 0 additions & 3 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ type ServerProperties struct {
// The power status of the server.
Power bool `json:"power"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`

// Which Availability-Zone the Server is placed.
AvailabilityZone string `json:"availability_zone"`

Expand Down
1 change: 0 additions & 1 deletion server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ func getMockServer(power bool, status string) Server {
Status: status,
LocationUUID: dummyUUID,
Power: power,
CurrentPrice: 9.5,
AvailabilityZone: "",
AutoRecovery: true,
Legacy: false,
Expand Down
3 changes: 0 additions & 3 deletions snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ type StorageSnapshotProperties struct {
// this shows the product_no of the license (see the /prices endpoint for more details).
LicenseProductNo int `json:"license_product_no"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`

// Defines the date and time the object was initially created.
CreateTime GSTime `json:"create_time"`

Expand Down
1 change: 0 additions & 1 deletion snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ func getMockStorageSnapshot(status string) StorageSnapshot {
LocationUUID: dummyUUID,
ChangeTime: dummyTime,
LicenseProductNo: 20,
CurrentPrice: 0.5,
CreateTime: dummyTime,
Capacity: 10,
LocationName: "Cologne",
Expand Down
3 changes: 0 additions & 3 deletions storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ type StorageProperties struct {
// Indicates the UUID of the last used template on this storage.
LastUsedTemplate string `json:"last_used_template"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`

// The capacity of a storage/ISO image/template/snapshot in GB.
Capacity int `json:"capacity"`

Expand Down
1 change: 0 additions & 1 deletion storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ func getMockStorage(status string) Storage {
LocationCountry: "Germany",
UsageInMinutes: 10,
LastUsedTemplate: dummyUUID,
CurrentPrice: 9.1,
Capacity: 10,
LocationUUID: dummyUUID,
StorageType: "storage",
Expand Down
3 changes: 0 additions & 3 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ type TemplateProperties struct {
// Description of the template.
Description string `json:"description"`

// **DEPRECATED** The price for the current period since the last bill.
CurrentPrice float64 `json:"current_price"`

// The human-readable name of the location. It supports the full UTF-8 character set, with a maximum of 64 characters.
LocationCountry string `json:"location_country"`

Expand Down
1 change: 0 additions & 1 deletion template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ func getMockTemplate(status string) Template {
LocationName: "Cologne",
Distro: "Centos7",
Description: "description",
CurrentPrice: 0,
LocationCountry: "Germany",
Name: "test",
Labels: []string{"label"},
Expand Down