Skip to content

Commit 06d3823

Browse files
committed
Fix JSON property name when calling ExpandDisk.
1 parent 09d0034 commit 06d3823

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

compute/server_scsi_controllers.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ type scsiController struct {
3131
SCSIUnitID int `json:"scsiId"`
3232
}
3333

34+
// expandDisk represents the request body when expamding a server disk.
35+
type expandDisk struct {
36+
// The ID of the disk to expand.
37+
DiskID string `json:"id"`
38+
39+
// The new disk size, in gigabytes.
40+
NewSizeGB int `json:"newSizeGb"`
41+
}
42+
3443
// removeDisk represents the request body when removing an existing disk from a server or SCSI controller.
3544
type removeDisk struct {
3645
DiskID string `json:"id"`
@@ -138,7 +147,7 @@ func (client *Client) AddDiskToSCSIController(controllerID string, scsiUnitID in
138147
return apiResponse.FieldMessages[0].Message, nil
139148
}
140149

141-
// ExpandDisk requests resizing of a server / SCSI controller's disk.
150+
// ExpandDisk requests expanding of a server / SCSI controller's disk.
142151
func (client *Client) ExpandDisk(diskID string, newSizeGB int) (response *APIResponseV2, err error) {
143152
organizationID, err := client.getOrganizationID()
144153
if err != nil {

compute/servers.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,6 @@ type resizeServerDisk struct {
191191
NewSizeGB int `xml:"newSizeGb"`
192192
}
193193

194-
// expandDisk represents the request body when expamding a server disk.
195-
type expandDisk struct {
196-
// The ID of the disk to expand.
197-
DiskID string `json:"id"`
198-
199-
// The new disk size, in gigabytes.
200-
NewSizeGB int `xml:"newSizeGb"`
201-
}
202-
203194
// changeServerDiskSpeed represents the request body when changing a server disk's speed.
204195
type changeServerDiskSpeed struct {
205196
// The XML name for the "resizeServerDisk" data contract

0 commit comments

Comments
 (0)