github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/sqlserver/run_migration.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/19939 9 10 type RunMigrationRequest struct { 11 // 迁移任务ID 12 MigrateId int64 `name:"MigrateId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *RunMigrationRequest) Invoke(client github_com_morlay_goqcloud.Client) (*RunMigrationResponse, error) { 18 resp := &RunMigrationResponse{} 19 err := client.Request("sqlserver", "RunMigration", "2018-03-28").Do(req, resp) 20 return resp, err 21 } 22 23 type RunMigrationResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 // 迁移流程启动后,返回流程ID 26 FlowId int64 `json:"FlowId"` 27 }