github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/sqlserver/delete_db.go (about) 1 package sqlserver 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 删除数据库 8 // https://cloud.tencent.com/document/api/238/19971 9 10 type DeleteDbRequest struct { 11 // 实例ID,形如mssql-rljoi3bf 12 InstanceId string `name:"InstanceId"` 13 // 数据库名数组 14 Names []*string `name:"Names"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *DeleteDbRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DeleteDbResponse, error) { 20 resp := &DeleteDbResponse{} 21 err := client.Request("sqlserver", "DeleteDB", "2018-03-28").Do(req, resp) 22 return resp, err 23 } 24 25 type DeleteDbResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 任务流id 28 FlowId int64 `json:"FlowId"` 29 }