public class GrantAccountPrivilegesRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
GrantAccountPrivilegesRequest() |
GrantAccountPrivilegesRequest(GrantAccountPrivilegesRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getColName()
Get If `Type` is `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 user.
|
String |
getInstanceId()
Get Instance ID, which is in the format of `tdsql-ow728lmc` and can be obtained through the `DescribeDBInstances` API.
|
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` is `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 user.
|
void |
setInstanceId(String InstanceId)
Set Instance ID, which is in the format of `tdsql-ow728lmc` and can be obtained through the `DescribeDBInstances` API.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public GrantAccountPrivilegesRequest()
public GrantAccountPrivilegesRequest(GrantAccountPrivilegesRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID, which is in the format of `tdsql-ow728lmc` and can be obtained through the `DescribeDBInstances` API.public String getUserName()
public void setUserName(String UserName)
UserName
- Login username.public String getHost()
public void setHost(String Host)
Host
- Access host allowed for 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 set (i.e., `\*.\*`), in which case the `Type` and `Object ` parameters will be ignored. If `DbName` is not `\*`, the input parameter `Type` is required.public 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`, `REPLICATION CLIENT`, `REPLICATION SLAVE`.
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`, `UPDATE`.public 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` is `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 © 2024. All rights reserved.