github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/es/restart_instance.go (about) 1 package es 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 重启ES集群实例 8 // https://cloud.tencent.com/document/api/845/30630 9 10 type RestartInstanceRequest struct { 11 // 要重启的实例ID 12 InstanceId string `name:"InstanceId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *RestartInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RestartInstanceResponse, error) { 18 resp := &RestartInstanceResponse{} 19 err := client.Request("es", "RestartInstance", "2018-04-16").Do(req, resp) 20 return resp, err 21 } 22 23 type RestartInstanceResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }