add-volume-type

This commit is contained in:
huyujie 2020-01-19 16:50:44 +08:00
parent a79dd0fe0a
commit 3dea3c565f
1 changed files with 6 additions and 6 deletions

View File

@ -135,7 +135,7 @@ type CloneVolumesInput struct {
SubZones *string `json:"sub_zones" name:"sub_zones" location:"params"`
Volume *string `json:"volume" name:"volume" location:"params"` // Required
VolumeName *string `json:"volume_name" name:"volume_name" location:"params"`
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200
VolumeType *int `json:"volume_type" name:"volume_type" default:"0" location:"params"`
Zone *string `json:"zone" name:"zone" location:"params"`
}
@ -150,7 +150,7 @@ func (v *CloneVolumesInput) Validate() error {
}
if v.VolumeType != nil {
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "10", "100", "200"}
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}
volumeTypeParameterValue := fmt.Sprint(*v.VolumeType)
volumeTypeIsValid := false
@ -211,7 +211,7 @@ type CreateVolumesInput struct {
Repl *string `json:"repl" name:"repl" location:"params"`
Size *int `json:"size" name:"size" location:"params"` // Required
VolumeName *string `json:"volume_name" name:"volume_name" location:"params"`
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200
VolumeType *int `json:"volume_type" name:"volume_type" default:"0" location:"params"`
Zone *string `json:"zone" name:"zone" location:"params"`
}
@ -226,7 +226,7 @@ func (v *CreateVolumesInput) Validate() error {
}
if v.VolumeType != nil {
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "10", "100", "200"}
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}
volumeTypeParameterValue := fmt.Sprint(*v.VolumeType)
volumeTypeIsValid := false
@ -341,7 +341,7 @@ type DescribeVolumesInput struct {
Tags []*string `json:"tags" name:"tags" location:"params"`
// Verbose's available values: 0, 1
Verbose *int `json:"verbose" name:"verbose" default:"0" location:"params"`
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 10, 100, 200
// VolumeType's available values: 0, 1, 2, 3, 4, 5, 6, 10, 100, 200
VolumeType *int `json:"volume_type" name:"volume_type" location:"params"`
Volumes []*string `json:"volumes" name:"volumes" location:"params"`
Zone *string `json:"zone" name:"zone" location:"params"`
@ -370,7 +370,7 @@ func (v *DescribeVolumesInput) Validate() error {
}
if v.VolumeType != nil {
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "10", "100", "200"}
volumeTypeValidValues := []string{"0", "1", "2", "3", "4", "5", "6", "10", "100", "200"}
volumeTypeParameterValue := fmt.Sprint(*v.VolumeType)
volumeTypeIsValid := false