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

     1  package dcdb
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 复制账号权限
     8  // https://cloud.tencent.com/document/api/557/19997
     9  
    10  type CopyAccountPrivilegesRequest struct {
    11  	// 目的用户允许的访问 host
    12  	DstHost string `name:"DstHost"`
    13  	// 目的账号的 ReadOnly 属性
    14  	DstReadOnly *string `name:"DstReadOnly,omitempty"`
    15  	// 目的用户名
    16  	DstUserName string `name:"DstUserName"`
    17  	// 实例 ID,形如:dcdbt-ow728lmc。
    18  	InstanceId string `name:"InstanceId"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  	// 源用户允许的访问 host
    22  	SrcHost string `name:"SrcHost"`
    23  	// 源账号的 ReadOnly 属性
    24  	SrcReadOnly *string `name:"SrcReadOnly,omitempty"`
    25  	// 源用户名
    26  	SrcUserName string `name:"SrcUserName"`
    27  }
    28  
    29  func (req *CopyAccountPrivilegesRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CopyAccountPrivilegesResponse, error) {
    30  	resp := &CopyAccountPrivilegesResponse{}
    31  	err := client.Request("dcdb", "CopyAccountPrivileges", "2018-04-11").Do(req, resp)
    32  	return resp, err
    33  }
    34  
    35  type CopyAccountPrivilegesResponse struct {
    36  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    37  }