public class GrantUserPermissionRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
dbId
The ID of the database.
|
String |
dsType
The permissions on a specific type of object that you want to grant to the user.
|
String |
expireDate
The time when the permissions expire.
|
Long |
instanceId
The ID of the instance.
|
Boolean |
logic
Specifies whether the database is a logical database.
|
String |
permTypes
The permission type.
|
String |
tableId
The ID of the table.
|
String |
tableName
The name of the table.
|
Long |
tid
The ID of the tenant.
|
String |
userId
The ID of the user.
|
| 构造器和说明 |
|---|
GrantUserPermissionRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static GrantUserPermissionRequest |
build(Map<String,?> map) |
String |
getDbId() |
String |
getDsType() |
String |
getExpireDate() |
Long |
getInstanceId() |
Boolean |
getLogic() |
String |
getPermTypes() |
String |
getTableId() |
String |
getTableName() |
Long |
getTid() |
String |
getUserId() |
GrantUserPermissionRequest |
setDbId(String dbId) |
GrantUserPermissionRequest |
setDsType(String dsType) |
GrantUserPermissionRequest |
setExpireDate(String expireDate) |
GrantUserPermissionRequest |
setInstanceId(Long instanceId) |
GrantUserPermissionRequest |
setLogic(Boolean logic) |
GrantUserPermissionRequest |
setPermTypes(String permTypes) |
GrantUserPermissionRequest |
setTableId(String tableId) |
GrantUserPermissionRequest |
setTableName(String tableName) |
GrantUserPermissionRequest |
setTid(Long tid) |
GrantUserPermissionRequest |
setUserId(String userId) |
@NameInMap(value="DbId") public String dbId
The ID of the database. You can call the ListDatabases operation to query the ID of a physical database and the ListLogicDatabases operation to query the ID of a logical database.
example:The value of the DatabaseId parameter is that of the DbId parameter.
1***
@NameInMap(value="DsType") public String dsType
The permissions on a specific type of object that you want to grant to the user. Valid values:
This parameter is required.
example:DATABASE
@NameInMap(value="ExpireDate") public String expireDate
The time when the permissions expire.
This parameter is required.
example:2021-12-12 00:00:00
@NameInMap(value="InstanceId") public Long instanceId
The ID of the instance. You must specify this parameter if you grant permissions on an instance to the user. You can call the ListInstances or GetInstance operation to query the ID of the instance.
example:174****
@NameInMap(value="Logic") public Boolean logic
Specifies whether the database is a logical database. You must specify this parameter if you grant permissions on a database to the user. Valid values:
false
@NameInMap(value="PermTypes") public String permTypes
The permission type. Separate multiple permission types with commas (,). Valid values:
This parameter is required.
example:QUERY
@NameInMap(value="TableId") public String tableId
The ID of the table. You must specify this parameter if you grant permissions on a table to the user. You can call the ListTables operation to query the table ID.
example:132***
@NameInMap(value="TableName") public String tableName
The name of the table. You must specify this parameter if you grant permissions on a table to the user.
example:table_name
@NameInMap(value="Tid") public Long tid
The ID of the tenant.
example:To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see the "View information about the current tenant" section of the Manage DMS tenants topic.
3***
@NameInMap(value="UserId") public String userId
public static GrantUserPermissionRequest build(Map<String,?> map) throws Exception
Exceptionpublic GrantUserPermissionRequest setDbId(String dbId)
public String getDbId()
public GrantUserPermissionRequest setDsType(String dsType)
public String getDsType()
public GrantUserPermissionRequest setExpireDate(String expireDate)
public String getExpireDate()
public GrantUserPermissionRequest setInstanceId(Long instanceId)
public Long getInstanceId()
public GrantUserPermissionRequest setLogic(Boolean logic)
public Boolean getLogic()
public GrantUserPermissionRequest setPermTypes(String permTypes)
public String getPermTypes()
public GrantUserPermissionRequest setTableId(String tableId)
public String getTableId()
public GrantUserPermissionRequest setTableName(String tableName)
public String getTableName()
public GrantUserPermissionRequest setTid(Long tid)
public Long getTid()
public GrantUserPermissionRequest setUserId(String userId)
public String getUserId()
Copyright © 2025. All rights reserved.