github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/msp/modify_migration_task_belong_to_project.go (about)

     1  package msp
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 更改迁移任务所属项目
     8  // https://cloud.tencent.com/document/api/659/18601
     9  
    10  type ModifyMigrationTaskBelongToProjectRequest struct {
    11  	// 项目ID
    12  	ProjectId int64 `name:"ProjectId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  	// 任务ID
    16  	TaskId string `name:"TaskId"`
    17  }
    18  
    19  func (req *ModifyMigrationTaskBelongToProjectRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyMigrationTaskBelongToProjectResponse, error) {
    20  	resp := &ModifyMigrationTaskBelongToProjectResponse{}
    21  	err := client.Request("msp", "ModifyMigrationTaskBelongToProject", "2018-03-19").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type ModifyMigrationTaskBelongToProjectResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }