lib/v20180411/models.rb in tencentcloud-sdk-dcdb-3.0.901 vs lib/v20180411/models.rb in tencentcloud-sdk-dcdb-3.0.902

- old
+ new

@@ -440,23 +440,26 @@ # @type DelayThresh: Integer # @param SlaveConst: 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。 # @type SlaveConst: Integer # @param MaxUserConnections: 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。 # @type MaxUserConnections: Integer + # @param EncryptedPassword: 使用GetPublicKey返回的RSA2048公钥加密后的密码 + # @type EncryptedPassword: String - attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh, :SlaveConst, :MaxUserConnections + attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh, :SlaveConst, :MaxUserConnections, :EncryptedPassword - def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil, slaveconst=nil, maxuserconnections=nil) + def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil, slaveconst=nil, maxuserconnections=nil, encryptedpassword=nil) @InstanceId = instanceid @UserName = username @Host = host @Password = password @ReadOnly = readonly @Description = description @DelayThresh = delaythresh @SlaveConst = slaveconst @MaxUserConnections = maxuserconnections + @EncryptedPassword = encryptedpassword end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @@ -465,10 +468,11 @@ @ReadOnly = params['ReadOnly'] @Description = params['Description'] @DelayThresh = params['DelayThresh'] @SlaveConst = params['SlaveConst'] @MaxUserConnections = params['MaxUserConnections'] + @EncryptedPassword = params['EncryptedPassword'] end end # CreateAccount返回参数结构体 class CreateAccountResponse < TencentCloud::Common::AbstractModel @@ -5289,24 +5293,28 @@ # @type UserName: String # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。 # @type Host: String # @param Password: 新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。 # @type Password: String + # @param EncryptedPassword: 使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15 + # @type EncryptedPassword: String - attr_accessor :InstanceId, :UserName, :Host, :Password + attr_accessor :InstanceId, :UserName, :Host, :Password, :EncryptedPassword - def initialize(instanceid=nil, username=nil, host=nil, password=nil) + def initialize(instanceid=nil, username=nil, host=nil, password=nil, encryptedpassword=nil) @InstanceId = instanceid @UserName = username @Host = host @Password = password + @EncryptedPassword = encryptedpassword end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] @Password = params['Password'] + @EncryptedPassword = params['EncryptedPassword'] end end # ResetAccountPassword返回参数结构体 class ResetAccountPasswordResponse < TencentCloud::Common::AbstractModel