github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/redis/clear_instance.go (about) 1 package redis 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 清空Redis实例 8 // https://cloud.tencent.com/document/api/239/20021 9 10 type ClearInstanceRequest struct { 11 // 实例id 12 InstanceId string `name:"InstanceId"` 13 // redis的实例密码 14 Password string `name:"Password"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *ClearInstanceRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ClearInstanceResponse, error) { 20 resp := &ClearInstanceResponse{} 21 err := client.Request("redis", "ClearInstance", "2018-04-12").Do(req, resp) 22 return resp, err 23 } 24 25 type ClearInstanceResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 任务Id 28 TaskId int64 `json:"TaskId"` 29 }