commit
7342aed616
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue