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