Skip to content

Commit

Permalink
Fix: scale down database to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kavya498 committed Feb 8, 2022
1 parent 641e660 commit 7a78dff
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions api/icd/icdv4/scaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package icdv4

import (
"fmt"

"github.com/IBM-Cloud/bluemix-go/client"
"github.com/IBM-Cloud/bluemix-go/utils"
)
Expand All @@ -14,9 +15,9 @@ type Group struct {
Id string `json:"id"`
Count int `json:"count"`
Members Members `json:"members"`
Memory Memory `json:"memory"`
Cpu Cpu `json:"cpu"`
Disk Disk `json:"disk"`
Memory Memory `json:"memory"`
Cpu Cpu `json:"cpu"`
Disk Disk `json:"disk"`
}

type Members struct {
Expand Down Expand Up @@ -77,7 +78,7 @@ type MemoryReq struct {
AllocationMb int `json:"allocation_mb,omitempty"`
}
type CpuReq struct {
AllocationCount int `json:"allocation_count,omitempty"`
AllocationCount int `json:"allocation_count"`
}
type DiskReq struct {
AllocationMb int `json:"allocation_mb,omitempty"`
Expand Down Expand Up @@ -128,5 +129,3 @@ func (r *groups) UpdateGroup(icdId string, groupId string, groupReq GroupReq) (T
}
return taskResult.Task, nil
}


0 comments on commit 7a78dff

Please sign in to comment.