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.



6071
6072
6073
6074
6075
6076
6077
# File 'lib/v20180411/models.rb', line 6071

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



6069
6070
6071
# File 'lib/v20180411/models.rb', line 6069

def EncryptedPassword
  @EncryptedPassword
end

#HostObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • Password:

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

  • EncryptedPassword:

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



6069
6070
6071
# File 'lib/v20180411/models.rb', line 6069

def Host
  @Host
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • Password:

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

  • EncryptedPassword:

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



6069
6070
6071
# File 'lib/v20180411/models.rb', line 6069

def InstanceId
  @InstanceId
end

#PasswordObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • Password:

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

  • EncryptedPassword:

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



6069
6070
6071
# File 'lib/v20180411/models.rb', line 6069

def Password
  @Password
end

#UserNameObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow728lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • Password:

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

  • EncryptedPassword:

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



6069
6070
6071
# File 'lib/v20180411/models.rb', line 6069

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



6079
6080
6081
6082
6083
6084
6085
# File 'lib/v20180411/models.rb', line 6079

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