Class: TencentCloud::Dcdb::V20180411::DescribeAccountPrivilegesRequest

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

Overview

DescribeAccountPrivileges请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, username = nil, host = nil, dbname = nil, type = nil, object = nil, colname = nil) ⇒ DescribeAccountPrivilegesRequest

Returns a new instance of DescribeAccountPrivilegesRequest.



1961
1962
1963
1964
1965
1966
1967
1968
1969
# File 'lib/v20180411/models.rb', line 1961

def initialize(instanceid=nil, username=nil, host=nil, dbname=nil, type=nil, object=nil, colname=nil)
  @InstanceId = instanceid
  @UserName = username
  @Host = host
  @DbName = dbname
  @Type = type
  @Object = object
  @ColName = colname
end

Instance Attribute Details

#ColNameObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow7t8lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • DbName:

    数据库名。如果为 *,表示查询全局权限(即 *.*),此时忽略 Type 和 Object 参数

  • Type:

    类型,可以填入 table 、 view 、 proc 、 func 和 *。当 DbName 为具体数据库名,Type为 * 时,表示查询该数据库权限(即db.*),此时忽略 Object 参数

  • Object:

    具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 * 或者为空

  • ColName:

    当 Type=table 时,ColName 为 * 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限



1959
1960
1961
# File 'lib/v20180411/models.rb', line 1959

def ColName
  @ColName
end

#DbNameObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow7t8lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • DbName:

    数据库名。如果为 *,表示查询全局权限(即 *.*),此时忽略 Type 和 Object 参数

  • Type:

    类型,可以填入 table 、 view 、 proc 、 func 和 *。当 DbName 为具体数据库名,Type为 * 时,表示查询该数据库权限(即db.*),此时忽略 Object 参数

  • Object:

    具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 * 或者为空

  • ColName:

    当 Type=table 时,ColName 为 * 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限



1959
1960
1961
# File 'lib/v20180411/models.rb', line 1959

def DbName
  @DbName
end

#HostObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow7t8lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • DbName:

    数据库名。如果为 *,表示查询全局权限(即 *.*),此时忽略 Type 和 Object 参数

  • Type:

    类型,可以填入 table 、 view 、 proc 、 func 和 *。当 DbName 为具体数据库名,Type为 * 时,表示查询该数据库权限(即db.*),此时忽略 Object 参数

  • Object:

    具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 * 或者为空

  • ColName:

    当 Type=table 时,ColName 为 * 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限



1959
1960
1961
# File 'lib/v20180411/models.rb', line 1959

def Host
  @Host
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow7t8lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • DbName:

    数据库名。如果为 *,表示查询全局权限(即 *.*),此时忽略 Type 和 Object 参数

  • Type:

    类型,可以填入 table 、 view 、 proc 、 func 和 *。当 DbName 为具体数据库名,Type为 * 时,表示查询该数据库权限(即db.*),此时忽略 Object 参数

  • Object:

    具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 * 或者为空

  • ColName:

    当 Type=table 时,ColName 为 * 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限



1959
1960
1961
# File 'lib/v20180411/models.rb', line 1959

def InstanceId
  @InstanceId
end

#ObjectObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow7t8lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • DbName:

    数据库名。如果为 *,表示查询全局权限(即 *.*),此时忽略 Type 和 Object 参数

  • Type:

    类型,可以填入 table 、 view 、 proc 、 func 和 *。当 DbName 为具体数据库名,Type为 * 时,表示查询该数据库权限(即db.*),此时忽略 Object 参数

  • Object:

    具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 * 或者为空

  • ColName:

    当 Type=table 时,ColName 为 * 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限



1959
1960
1961
# File 'lib/v20180411/models.rb', line 1959

def Object
  @Object
end

#TypeObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow7t8lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • DbName:

    数据库名。如果为 *,表示查询全局权限(即 *.*),此时忽略 Type 和 Object 参数

  • Type:

    类型,可以填入 table 、 view 、 proc 、 func 和 *。当 DbName 为具体数据库名,Type为 * 时,表示查询该数据库权限(即db.*),此时忽略 Object 参数

  • Object:

    具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 * 或者为空

  • ColName:

    当 Type=table 时,ColName 为 * 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限



1959
1960
1961
# File 'lib/v20180411/models.rb', line 1959

def Type
  @Type
end

#UserNameObject

Parameters:

  • InstanceId:

    实例 ID,形如:dcdbt-ow7t8lmc。

  • UserName:

    登录用户名。

  • Host:

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

  • DbName:

    数据库名。如果为 *,表示查询全局权限(即 *.*),此时忽略 Type 和 Object 参数

  • Type:

    类型,可以填入 table 、 view 、 proc 、 func 和 *。当 DbName 为具体数据库名,Type为 * 时,表示查询该数据库权限(即db.*),此时忽略 Object 参数

  • Object:

    具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 * 或者为空

  • ColName:

    当 Type=table 时,ColName 为 * 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限



1959
1960
1961
# File 'lib/v20180411/models.rb', line 1959

def UserName
  @UserName
end

Instance Method Details

#deserialize(params) ⇒ Object



1971
1972
1973
1974
1975
1976
1977
1978
1979
# File 'lib/v20180411/models.rb', line 1971

def deserialize(params)
  @InstanceId = params['InstanceId']
  @UserName = params['UserName']
  @Host = params['Host']
  @DbName = params['DbName']
  @Type = params['Type']
  @Object = params['Object']
  @ColName = params['ColName']
end