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

     1  package postgres
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 修改实例名字
     8  // https://cloud.tencent.com/document/api/409/18101
     9  
    10  type ModifyDbInstanceNameRequest struct {
    11  	// 数据库实例ID,形如postgres-6fego161
    12  	DBInstanceId string `name:"DBInstanceId"`
    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("postgres", "ModifyDBInstanceName", "2017-03-12").Do(req, resp)
    22  	return resp, err
    23  }
    24  
    25  type ModifyDbInstanceNameResponse struct {
    26  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    27  }