github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/as/modify_desired_capacity.go (about) 1 package as 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 修改期望实例数 8 // https://cloud.tencent.com/document/api/377/20432 9 10 type ModifyDesiredCapacityRequest struct { 11 // 伸缩组ID 12 AutoScalingGroupId string `name:"AutoScalingGroupId"` 13 // 期望实例数 14 DesiredCapacity int64 `name:"DesiredCapacity"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *ModifyDesiredCapacityRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyDesiredCapacityResponse, error) { 20 resp := &ModifyDesiredCapacityResponse{} 21 err := client.Request("as", "ModifyDesiredCapacity", "2018-04-19").Do(req, resp) 22 return resp, err 23 } 24 25 type ModifyDesiredCapacityResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }