github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/cvm/modify_instances_project.go (about) 1 package cvm 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 修改实例所属项目 8 // https://cloud.tencent.com/document/api/213/15746 9 10 type ModifyInstancesProjectRequest struct { 11 // 一个或多个待操作的实例ID。可通过DescribeInstances API返回值中的InstanceId获取。每次请求允许操作的实例数量上限是100。 12 InstanceIds []*string `name:"InstanceIds"` 13 // 项目ID。项目可以使用AddProject接口创建。后续使用DescribeInstances接口查询实例时,项目ID可用于过滤结果。 14 ProjectId int64 `name:"ProjectId"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *ModifyInstancesProjectRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyInstancesProjectResponse, error) { 20 resp := &ModifyInstancesProjectResponse{} 21 err := client.Request("cvm", "ModifyInstancesProject", "2017-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type ModifyInstancesProjectResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }