github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/as/remove_instances.go (about) 1 package as 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 从伸缩组中删除 CVM 实例 8 // https://cloud.tencent.com/document/api/377/20431 9 10 type RemoveInstancesRequest struct { 11 // 伸缩组ID 12 AutoScalingGroupId string `name:"AutoScalingGroupId"` 13 // CVM实例ID列表 14 InstanceIds []*string `name:"InstanceIds"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *RemoveInstancesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RemoveInstancesResponse, error) { 20 resp := &RemoveInstancesResponse{} 21 err := client.Request("as", "RemoveInstances", "2018-04-19").Do(req, resp) 22 return resp, err 23 } 24 25 type RemoveInstancesResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }