Skip to content

Commit

Permalink
fix. 修复ResizeClusterInput 中NodeRole为列表类型
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkiiiiiice committed Mar 15, 2024
1 parent b2c481e commit 20c1ef5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions service/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -982,12 +982,12 @@ func (s *ClusterService) ResizeCluster(i *ResizeClusterInput) (*ResizeClusterOut
}

type ResizeClusterInput struct {
Cluster *string `json:"cluster" name:"cluster" location:"params"` // Required
CPU *int `json:"cpu" name:"cpu" location:"params"`
Gpu *int `json:"gpu" name:"gpu" location:"params"`
Memory *int `json:"memory" name:"memory" location:"params"`
NodeRole *string `json:"node_role" name:"node_role" location:"params"`
StorageSize *int `json:"storage_size" name:"storage_size" location:"params"`
Cluster *string `json:"cluster" name:"cluster" location:"params"` // Required
CPU *int `json:"cpu" name:"cpu" location:"params"`
Gpu *int `json:"gpu" name:"gpu" location:"params"`
Memory *int `json:"memory" name:"memory" location:"params"`
NodeRole []*string `json:"node_role" name:"node_role" location:"params"`
StorageSize *int `json:"storage_size" name:"storage_size" location:"params"`
}

func (v *ResizeClusterInput) Validate() error {
Expand Down

0 comments on commit 20c1ef5

Please sign in to comment.