Class: TencentCloud::Dcdb::V20180411::TablePrivilege

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

Overview

数据库表权限

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(database = nil, table = nil, privileges = nil) ⇒ TablePrivilege

Returns a new instance of TablePrivilege.



6319
6320
6321
6322
6323
# File 'lib/v20180411/models.rb', line 6319

def initialize(database=nil, table=nil, privileges=nil)
  @Database = database
  @Table = table
  @Privileges = privileges
end

Instance Attribute Details

#DatabaseObject

Parameters:

  • Database:

    数据库名

  • Table:

    数据库表名

  • Privileges:

    权限信息



6317
6318
6319
# File 'lib/v20180411/models.rb', line 6317

def Database
  @Database
end

#PrivilegesObject

Parameters:

  • Database:

    数据库名

  • Table:

    数据库表名

  • Privileges:

    权限信息



6317
6318
6319
# File 'lib/v20180411/models.rb', line 6317

def Privileges
  @Privileges
end

#TableObject

Parameters:

  • Database:

    数据库名

  • Table:

    数据库表名

  • Privileges:

    权限信息



6317
6318
6319
# File 'lib/v20180411/models.rb', line 6317

def Table
  @Table
end

Instance Method Details

#deserialize(params) ⇒ Object



6325
6326
6327
6328
6329
# File 'lib/v20180411/models.rb', line 6325

def deserialize(params)
  @Database = params['Database']
  @Table = params['Table']
  @Privileges = params['Privileges']
end