github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/as/detach_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/20436
     9  
    10  type DetachInstancesRequest 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 *DetachInstancesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DetachInstancesResponse, error) {
    20  	resp := &DetachInstancesResponse{}
    21  	err := client.Request("as", "DetachInstances", "2018-04-19").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type DetachInstancesResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }