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

     1  package cdb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 修改云数据库实例名
     8  // https://cloud.tencent.com/document/api/236/15877
     9  
    10  type ModifyDbInstanceNameRequest struct {
    11  	// 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用查询实例列表 接口获取,其值为输出参数中字段 InstanceId 的值。
    12  	InstanceId string `name:"InstanceId"`
    13  	// 实例名称。
    14  	InstanceName string `name:"InstanceName"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  }
    18  
    19  func (req *ModifyDbInstanceNameRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyDbInstanceNameResponse, error) {
    20  	resp := &ModifyDbInstanceNameResponse{}
    21  	err := client.Request("cdb", "ModifyDBInstanceName", "2017-03-20").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type ModifyDbInstanceNameResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }