From ce43debbe978520536d48d87ee5dec5f3a1616ed Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Sat, 6 Jun 2015 16:36:21 +0200 Subject: [PATCH] Added more information on volumes inspection (#50) --- api.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index b30663cbf6..6aa6dcef97 100644 --- a/api.go +++ b/api.go @@ -84,11 +84,17 @@ type ScalewayVolume struct { // ModificationDate is the date of the last modification of the volume ModificationDate string `json:"modification_date,omitempty"` + // Organization is the organization owning the volume + Organization string `json:"organization,omitempty"` + // Name is the name of the volume Name string `json:"name,omitempty"` // Server is the server using this image - // Server ScalewayServer `json:"server,omitempty"` + Server *struct { + Identifier string `json:"id,omitempty"` + Name string `json:"name,omitempty"` + } `json:"server,omitempty"` // VolumeType is a Scaleway identifier for the kind of volume (default: l_ssd) VolumeType string `json:"volume_type,omitempty"`