Class: TencentCloud::Dcdb::V20180411::ResetAccountPasswordRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180411/models.rb

Overview

ResetAccountPassword请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, username = nil, host = nil, password = nil, encryptedpassword = nil) ⇒ ResetAccountPasswordRequest

Returns a new instance of ResetAccountPasswordRequest.



5753
5754
5755
5756
5757
5758
5759
# File 'lib/v20180411/models.rb', line 5753

def initialize(instanceid=nil, username=nil, host=nil, password=nil, encryptedpassword=nil)
  @InstanceId = instanceid
  @UserName = username
  @Host = host
  @Password = password
  @EncryptedPassword = encryptedpassword
end

Instance Attribute Details

#EncryptedPasswordObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

    用户允许的访问 host,用户名+host唯一确定一个账号。

  • Password:

    新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。

  • EncryptedPassword:

    使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15



5751
5752
5753
# File 'lib/v20180411/models.rb', line 5751

def EncryptedPassword
  @EncryptedPassword
end

#HostObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

    用户允许的访问 host,用户名+host唯一确定一个账号。

  • Password:

    新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。

  • EncryptedPassword:

    使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15



5751
5752
5753
# File 'lib/v20180411/models.rb', line 5751

def Host
  @Host
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

    用户允许的访问 host,用户名+host唯一确定一个账号。

  • Password:

    新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。

  • EncryptedPassword:

    使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15



5751
5752
5753
# File 'lib/v20180411/models.rb', line 5751

def InstanceId
  @InstanceId
end

#PasswordObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

    用户允许的访问 host,用户名+host唯一确定一个账号。

  • Password:

    新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。

  • EncryptedPassword:

    使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15



5751
5752
5753
# File 'lib/v20180411/models.rb', line 5751

def Password
  @Password
end

#UserNameObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

    用户允许的访问 host,用户名+host唯一确定一个账号。

  • Password:

    新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。

  • EncryptedPassword:

    使用GetPublicKey返回的RSA2048公钥加密后的密码,加密算法是PKCS1v15



5751
5752
5753
# File 'lib/v20180411/models.rb', line 5751

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



5761
5762
5763
5764
5765
5766
5767
# File 'lib/v20180411/models.rb', line 5761

def deserialize(params)
  @InstanceId = params['InstanceId']
  @UserName = params['UserName']
  @Host = params['Host']
  @Password = params['Password']
  @EncryptedPassword = params['EncryptedPassword']
end