github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/mariadb/modify_db_instances_project.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/16176 9 10 type ModifyDbInstancesProjectRequest struct { 11 // 待修改的实例ID列表。实例 ID 形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 12 InstanceIds []*string `name:"InstanceIds"` 13 // 要分配的项目 ID,可以通过 DescribeProjects 查询项目列表接口获取。 14 ProjectId int64 `name:"ProjectId"` 15 // 区域 16 Region string `name:"Region"` 17 } 18 19 func (req *ModifyDbInstancesProjectRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyDbInstancesProjectResponse, error) { 20 resp := &ModifyDbInstancesProjectResponse{} 21 err := client.Request("mariadb", "ModifyDBInstancesProject", "2017-03-12").Do(req, resp) 22 return resp, err 23 } 24 25 type ModifyDbInstancesProjectResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }