github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/postgres/modify_account_remark.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/18108
     9  
    10  type ModifyAccountRemarkRequest struct {
    11  	// 实例ID,形如postgres-4wdeb0zv
    12  	DBInstanceId string `name:"DBInstanceId"`
    13  	// 区域
    14  	Region string `name:"Region"`
    15  	// 用户UserName对应的新备注
    16  	Remark string `name:"Remark"`
    17  	// 实例用户名
    18  	UserName string `name:"UserName"`
    19  }
    20  
    21  func (req *ModifyAccountRemarkRequest) Invoke(client github_com_morlay_goqcloud.Client) (*ModifyAccountRemarkResponse, error) {
    22  	resp := &ModifyAccountRemarkResponse{}
    23  	err := client.Request("postgres", "ModifyAccountRemark", "2017-03-12").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type ModifyAccountRemarkResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  }