public class GrantAccountPrivilegesRequest extends AbstractModel
Constructor and Description |
---|
GrantAccountPrivilegesRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getColName()
Get If `Type` = table and `ColName` is `\*`, the permissions will be granted to the table; if `ColName` is a specific field name, the permissions will be granted to the field
|
String |
getDbName()
Get Database name.
|
String |
getHost()
Get Access host allowed for a user.
|
String |
getInstanceId()
Get Instance ID in the format of dcdbt-ow728lmc.
|
String |
getObject()
Get Type name.
|
String[] |
getPrivileges()
Get Global permission.
|
String |
getType()
Get Type.
|
String |
getUserName()
Get Login username.
|
void |
setColName(String ColName)
Set If `Type` = table and `ColName` is `\*`, the permissions will be granted to the table; if `ColName` is a specific field name, the permissions will be granted to the field
|
void |
setDbName(String DbName)
Set Database name.
|
void |
setHost(String Host)
Set Access host allowed for a user.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of dcdbt-ow728lmc.
|
void |
setObject(String Object)
Set Type name.
|
void |
setPrivileges(String[] Privileges)
Set Global permission.
|
void |
setType(String Type)
Set Type.
|
void |
setUserName(String UserName)
Set Login username.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of dcdbt-ow728lmc.public String getUserName()
public void setUserName(String UserName)
UserName
- Login username.public String getHost()
public void setHost(String Host)
Host
- Access host allowed for a user. An account is uniquely identified by username and host.public String getDbName()
public void setDbName(String DbName)
DbName
- Database name. `\*` indicates that global permissions will be queried (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignoredpublic String[] getPrivileges()
public void setPrivileges(String[] Privileges)
Privileges
- Global permission. Valid values: SELECT; INSERT; UPDATE; DELETE; CREATE; DROP; REFERENCES; INDEX; ALTER; CREATE TEMPORARY TABLES; LOCK TABLES; EXECUTE; CREATE VIEW; SHOW VIEW; CREATE ROUTINE; ALTER ROUTINE; EVENT; TRIGGER; SHOW DATABASES
Database permission. Valid values: SELECT; INSERT; UPDATE; DELETE; CREATE; DROP; REFERENCES; INDEX; ALTER; CREATE TEMPORARY TABLES; LOCK TABLES; EXECUTE; CREATE VIEW; SHOW VIEW; CREATE ROUTINE; ALTER ROUTINE; EVENT; TRIGGER
Table/view permission. Valid values: SELECT; INSERT; UPDATE; DELETE; CREATE; DROP; REFERENCES; INDEX; ALTER; CREATE VIEW; SHOW VIEW; TRIGGER
Stored procedure/function permission. Valid values: ALTER ROUTINE; EXECUTE
Field permission. Valid values: INSERT; REFERENCES; SELECT; UPDATEpublic String getType()
public void setType(String Type)
Type
- Type. Valid values: table; view; proc; func; \*. If `DbName` is a specific database name and `Type` is `\*`, the permissions of the database will be set (i.e., `db.\*`), in which case the `Object` parameter will be ignoredpublic String getObject()
public void setObject(String Object)
Object
- Type name. For example, if `Type` is table, `Object` indicates a specific table name; if both `DbName` and `Type` are specific names, it indicates a specific object name and cannot be `\*` or emptypublic String getColName()
public void setColName(String ColName)
ColName
- If `Type` = table and `ColName` is `\*`, the permissions will be granted to the table; if `ColName` is a specific field name, the permissions will be granted to the fieldCopyright © 2020. All rights reserved.