github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/sqlserver/modify_db_instance_project.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/19957
     9  
    10  type ModifyDbInstanceProjectRequest struct {
    11  	// 实例ID数组,形如mssql-j8kv137v
    12  	InstanceIdSet []*string `name:"InstanceIdSet"`
    13  	// 项目ID,为0的话表示默认项目
    14  	ProjectId int64 `name:"ProjectId"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *ModifyDbInstanceProjectRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyDbInstanceProjectResponse, error) {
    20  	resp := &ModifyDbInstanceProjectResponse{}
    21  	err := client.Request("sqlserver", "ModifyDBInstanceProject", "2018-03-28").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type ModifyDbInstanceProjectResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  	// 修改成功的实例个数
    28  	Count int64 `json:"Count"`
    29  }