github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/msp/list_migration_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/18603 9 10 type ListMigrationProjectRequest struct { 11 // 返回条数,默认值为500 12 Limit *int64 `name:"Limit,omitempty"` 13 // 记录起始数,默认值为0 14 Offset *int64 `name:"Offset,omitempty"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *ListMigrationProjectRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ListMigrationProjectResponse, error) { 20 resp := &ListMigrationProjectResponse{} 21 err := client.Request("msp", "ListMigrationProject", "2018-03-19").Do(req, resp) 22 return resp, err 23 } 24 25 type ListMigrationProjectResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 // 项目列表 28 Projects []*Project `json:"Projects"` 29 // 项目总数 30 TotalCount int64 `json:"TotalCount"` 31 }