github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/mariadb/clone_account.go (about) 1 package mariadb 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 克隆实例账户 8 // https://cloud.tencent.com/document/api/237/20257 9 10 type CloneAccountRequest struct { 11 // 目的用户账户描述 12 DstDesc *string `name:"DstDesc,omitempty"` 13 // 目的用户HOST 14 DstHost string `name:"DstHost"` 15 // 目的用户账户名 16 DstUser string `name:"DstUser"` 17 // 实例ID 18 InstanceId string `name:"InstanceId"` 19 // 区域 20 Region string `name:"Region"` 21 // 源用户HOST 22 SrcHost string `name:"SrcHost"` 23 // 源用户账户名 24 SrcUser string `name:"SrcUser"` 25 } 26 27 func (req *CloneAccountRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CloneAccountResponse, error) { 28 resp := &CloneAccountResponse{} 29 err := client.Request("mariadb", "CloneAccount", "2017-03-12").Do(req, resp) 30 return resp, err 31 } 32 33 type CloneAccountResponse struct { 34 github_com_morlay_goqcloud.TencentCloudBaseResponse 35 // 异步任务流程ID。 36 FlowId int64 `json:"FlowId"` 37 }