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.



6637
6638
6639
6640
6641
# File 'lib/v20180411/models.rb', line 6637

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

Instance Attribute Details

#DatabaseObject

Parameters:

  • Database:

    数据库名

  • Table:

    数据库表名

  • Privileges:

    权限信息



6635
6636
6637
# File 'lib/v20180411/models.rb', line 6635

def Database
  @Database
end

#PrivilegesObject

Parameters:

  • Database:

    数据库名

  • Table:

    数据库表名

  • Privileges:

    权限信息



6635
6636
6637
# File 'lib/v20180411/models.rb', line 6635

def Privileges
  @Privileges
end

#TableObject

Parameters:

  • Database:

    数据库名

  • Table:

    数据库表名

  • Privileges:

    权限信息



6635
6636
6637
# File 'lib/v20180411/models.rb', line 6635

def Table
  @Table
end

Instance Method Details

#deserialize(params) ⇒ Object



6643
6644
6645
6646
6647
# File 'lib/v20180411/models.rb', line 6643

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