github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cdb/delete_accounts.go (about) 1 package cdb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 删除云数据库的账号 8 // https://cloud.tencent.com/document/api/236/17501 9 10 type DeleteAccountsRequest struct { 11 // 云数据库账号。 12 Accounts []*Account `name:"Accounts"` 13 // 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。 14 InstanceId string `name:"InstanceId"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *DeleteAccountsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DeleteAccountsResponse, error) { 20 resp := &DeleteAccountsResponse{} 21 err := client.Request("cdb", "DeleteAccounts", "2017-03-20").Do(req, resp) 22 return resp, err 23 } 24 25 type DeleteAccountsResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 异步任务的请求ID,可使用此ID查询异步任务的执行结果。 28 AsyncRequestId string `json:"AsyncRequestId"` 29 }