@@ -18,6 +18,7 @@ package ah
18
18
19
19
import (
20
20
"context"
21
+ "encoding/json"
21
22
"fmt"
22
23
"net/http"
23
24
)
@@ -33,19 +34,19 @@ type Volume struct {
33
34
DatacenterIDs []string `json:"datacenter_ids,omitempty"`
34
35
ReplicationLevel int `json:"replication_level,omitempty"`
35
36
} `json:"volume_pool,omitempty"`
36
- ID string `json:"id ,omitempty"`
37
- Name string `json:"name ,omitempty"`
38
- Meta map [ string ] interface {} `json:"meta ,omitempty"`
39
- FileSystem string `json:"file_system,omitempty"`
40
- State string `json:"state,omitempty"`
41
- Number string `json:"number,omitempty"`
42
- OriginalID string `json:"original_id,omitempty"`
43
- CreatedAt string `json:"created_at,omitempty"`
44
- AttachedAt string `json:"attached_at,omitempty"`
45
- ProductID string `json:"product_id,omitempty"`
46
- Size int `json:"size,omitempty"`
47
- Port int `json:"port,omitempty"`
48
- PlanID int `json:"plan_id,omitempty"`
37
+ Meta json. RawMessage `json:"meta ,omitempty"`
38
+ ID string `json:"id ,omitempty"`
39
+ Name string `json:"name ,omitempty"`
40
+ FileSystem string `json:"file_system,omitempty"`
41
+ State string `json:"state,omitempty"`
42
+ Number string `json:"number,omitempty"`
43
+ OriginalID string `json:"original_id,omitempty"`
44
+ CreatedAt string `json:"created_at,omitempty"`
45
+ AttachedAt string `json:"attached_at,omitempty"`
46
+ ProductID string `json:"product_id,omitempty"`
47
+ Size int `json:"size,omitempty"`
48
+ Port int `json:"port,omitempty"`
49
+ PlanID int `json:"plan_id,omitempty"`
49
50
}
50
51
51
52
// VolumeAction object
0 commit comments