Skip to content

Commit 7342aed

Browse files
authored
Merge pull request #148 from yunify/add-volume-type
add-volume-type
2 parents a79dd0f + 3dea3c5 commit 7342aed

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

service/volume.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ type CloneVolumesInput struct {
135135
SubZones *string `json:"sub_zones" name:"sub_zones" location:"params"`
136136
Volume *string `json:"volume" name:"volume" location:"params"` // Required
137137
VolumeName *string `json:"volume_name" name:"volume_name" location:"params"`
138-
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200
138+
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200
139139
VolumeType *int `json:"volume_type" name:"volume_type" default:"0" location:"params"`
140140
Zone *string `json:"zone" name:"zone" location:"params"`
141141
}
@@ -150,7 +150,7 @@ func (v *CloneVolumesInput) Validate() error {
150150
}
151151

152152
if v.VolumeType != nil {
153-
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "10", "100", "200"}
153+
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}
154154
volumeTypeParameterValue := fmt.Sprint(*v.VolumeType)
155155

156156
volumeTypeIsValid := false
@@ -211,7 +211,7 @@ type CreateVolumesInput struct {
211211
Repl *string `json:"repl" name:"repl" location:"params"`
212212
Size *int `json:"size" name:"size" location:"params"` // Required
213213
VolumeName *string `json:"volume_name" name:"volume_name" location:"params"`
214-
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200
214+
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200
215215
VolumeType *int `json:"volume_type" name:"volume_type" default:"0" location:"params"`
216216
Zone *string `json:"zone" name:"zone" location:"params"`
217217
}
@@ -226,7 +226,7 @@ func (v *CreateVolumesInput) Validate() error {
226226
}
227227

228228
if v.VolumeType != nil {
229-
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "10", "100", "200"}
229+
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}
230230
volumeTypeParameterValue := fmt.Sprint(*v.VolumeType)
231231

232232
volumeTypeIsValid := false
@@ -341,7 +341,7 @@ type DescribeVolumesInput struct {
341341
Tags []*string `json:"tags" name:"tags" location:"params"`
342342
// Verbose's available values: 0, 1
343343
Verbose *int `json:"verbose" name:"verbose" default:"0" location:"params"`
344-
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200
344+
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200
345345
VolumeType *int `json:"volume_type" name:"volume_type" location:"params"`
346346
Volumes []*string `json:"volumes" name:"volumes" location:"params"`
347347
Zone *string `json:"zone" name:"zone" location:"params"`
@@ -370,7 +370,7 @@ func (v *DescribeVolumesInput) Validate() error {
370370
}
371371

372372
if v.VolumeType != nil {
373-
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "10", "100", "200"}
373+
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}
374374
volumeTypeParameterValue := fmt.Sprint(*v.VolumeType)
375375

376376
volumeTypeIsValid := false

0 commit comments

Comments
 (0)