Class: TencentCloud::Postgres::V20170312::AccountInfo

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

Overview

账户信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dbinstanceid = nil, username = nil, remark = nil, status = nil, createtime = nil, updatetime = nil, passwordupdatetime = nil, usertype = nil, opencam = nil) ⇒ AccountInfo

Returns a new instance of AccountInfo.



46
47
48
49
50
51
52
53
54
55
56
# File 'lib/v20170312/models.rb', line 46

def initialize(dbinstanceid=nil, username=nil, remark=nil, status=nil, createtime=nil, updatetime=nil, passwordupdatetime=nil, usertype=nil, opencam=nil)
  @DBInstanceId = dbinstanceid
  @UserName = username
  @Remark = remark
  @Status = status
  @CreateTime = createtime
  @UpdateTime = updatetime
  @PasswordUpdateTime = passwordupdatetime
  @UserType = usertype
  @OpenCam = opencam
end

Instance Attribute Details

#CreateTimeObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def CreateTime
  @CreateTime
end

#DBInstanceIdObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def DBInstanceId
  @DBInstanceId
end

#OpenCamObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def OpenCam
  @OpenCam
end

#PasswordUpdateTimeObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def PasswordUpdateTime
  @PasswordUpdateTime
end

#RemarkObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def Remark
  @Remark
end

#StatusObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def Status
  @Status
end

#UpdateTimeObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def UpdateTime
  @UpdateTime
end

#UserNameObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def UserName
  @UserName
end

#UserTypeObject

此字段只在2025-10-31后才生效,之前无论是否修改密码,该值统一为默认值:0000-00-00 00:00:00 同时仅通过云API或者管控控制台修改密码,才会更新该字段。

Parameters:

  • UserType:

    账号类型。支持normal、tencentDBSuper。normal指代普通用户,tencentDBSuper为拥有pg_tencentdb_superuser角色的账号。

  • OpenCam:

    用户账号是否启用CAM验证



44
45
46
# File 'lib/v20170312/models.rb', line 44

def UserType
  @UserType
end

Instance Method Details

#deserialize(params) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
# File 'lib/v20170312/models.rb', line 58

def deserialize(params)
  @DBInstanceId = params['DBInstanceId']
  @UserName = params['UserName']
  @Remark = params['Remark']
  @Status = params['Status']
  @CreateTime = params['CreateTime']
  @UpdateTime = params['UpdateTime']
  @PasswordUpdateTime = params['PasswordUpdateTime']
  @UserType = params['UserType']
  @OpenCam = params['OpenCam']
end