github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/as/enable_auto_scaling_group.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/20434 9 10 type EnableAutoScalingGroupRequest struct { 11 // 伸缩组ID 12 AutoScalingGroupId string `name:"AutoScalingGroupId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *EnableAutoScalingGroupRequest) Invoke(client github_com_morlay_goqcloud.Client) (*EnableAutoScalingGroupResponse, error) { 18 resp := &EnableAutoScalingGroupResponse{} 19 err := client.Request("as", "EnableAutoScalingGroup", "2018-04-19").Do(req, resp) 20 return resp, err 21 } 22 23 type EnableAutoScalingGroupResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }