Class: TencentCloud::Sqlserver::V20180328::AccountPrivilege

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

Overview

数据库账号权限信息。创建数据库时设置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username = nil, privilege = nil, accounttype = nil) ⇒ AccountPrivilege

Returns a new instance of AccountPrivilege.



181
182
183
184
185
# File 'lib/v20180328/models.rb', line 181

def initialize(username=nil, privilege=nil, accounttype=nil)
  @UserName = username
  @Privilege = privilege
  @AccountType = accounttype
end

Instance Attribute Details

#AccountTypeObject

Parameters:

  • UserName:

    数据库用户名

  • Privilege:

    数据库权限。ReadWrite表示可读写,ReadOnly表示只读,Delete表示删除DB对该账户的权限,DBOwner所有者

  • AccountType:

    账户名称,L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限



179
180
181
# File 'lib/v20180328/models.rb', line 179

def AccountType
  @AccountType
end

#PrivilegeObject

Parameters:

  • UserName:

    数据库用户名

  • Privilege:

    数据库权限。ReadWrite表示可读写,ReadOnly表示只读,Delete表示删除DB对该账户的权限,DBOwner所有者

  • AccountType:

    账户名称,L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限



179
180
181
# File 'lib/v20180328/models.rb', line 179

def Privilege
  @Privilege
end

#UserNameObject

Parameters:

  • UserName:

    数据库用户名

  • Privilege:

    数据库权限。ReadWrite表示可读写,ReadOnly表示只读,Delete表示删除DB对该账户的权限,DBOwner所有者

  • AccountType:

    账户名称,L0-超级权限(基础版独有),L1-高级权限,L2-特殊权限,L3-普通权限



179
180
181
# File 'lib/v20180328/models.rb', line 179

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



187
188
189
190
191
# File 'lib/v20180328/models.rb', line 187

def deserialize(params)
  @UserName = params['UserName']
  @Privilege = params['Privilege']
  @AccountType = params['AccountType']
end