public class ModifyAccountPrivilegesRequest extends AbstractModel
Constructor and Description |
---|
ModifyAccountPrivilegesRequest() |
ModifyAccountPrivilegesRequest(ModifyAccountPrivilegesRequest 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 |
---|---|
Account[] |
getAccounts()
Get Database account, including username and domain name.
|
ColumnPrivilege[] |
getColumnPrivileges()
Get Column permission in table.
|
DatabasePrivilege[] |
getDatabasePrivileges()
Get Database permission.
|
String[] |
getGlobalPrivileges()
Get Global permission.
|
String |
getInstanceId()
Get Instance ID in the format of cdb-c1nl9rpv.
|
String |
getModifyAction()
Get If this parameter is specified, permissions are modified in batches.
|
TablePrivilege[] |
getTablePrivileges()
Get Table permission in the database.
|
void |
setAccounts(Account[] Accounts)
Set Database account, including username and domain name.
|
void |
setColumnPrivileges(ColumnPrivilege[] ColumnPrivileges)
Set Column permission in table.
|
void |
setDatabasePrivileges(DatabasePrivilege[] DatabasePrivileges)
Set Database permission.
|
void |
setGlobalPrivileges(String[] GlobalPrivileges)
Set Global permission.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of cdb-c1nl9rpv.
|
void |
setModifyAction(String ModifyAction)
Set If this parameter is specified, permissions are modified in batches.
|
void |
setTablePrivileges(TablePrivilege[] TablePrivileges)
Set Table permission in the database.
|
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 ModifyAccountPrivilegesRequest()
public ModifyAccountPrivilegesRequest(ModifyAccountPrivilegesRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of cdb-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page.public Account[] getAccounts()
public void setAccounts(Account[] Accounts)
Accounts
- Database account, including username and domain name.public String[] getGlobalPrivileges()
public void setGlobalPrivileges(String[] GlobalPrivileges)
GlobalPrivileges
- Global permission. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "PROCESS", "DROP", "REFERENCES", "INDEX", "ALTER", "SHOW DATABASES", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER".
Note: if this parameter is not passed in, it means to clear the permission.public DatabasePrivilege[] getDatabasePrivileges()
public void setDatabasePrivileges(DatabasePrivilege[] DatabasePrivileges)
DatabasePrivileges
- 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".
Note: if this parameter is not passed in, it means to clear the permission.public TablePrivilege[] getTablePrivileges()
public void setTablePrivileges(TablePrivilege[] TablePrivileges)
TablePrivileges
- Table permission in the database. Valid values: "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE VIEW", "SHOW VIEW", "TRIGGER".
Note: if this parameter is not passed in, it means to clear the permission.public ColumnPrivilege[] getColumnPrivileges()
public void setColumnPrivileges(ColumnPrivilege[] ColumnPrivileges)
ColumnPrivileges
- Column permission in table. Valid values: "SELECT", "INSERT", "UPDATE", "REFERENCES".
Note: if this parameter is not passed in, it means to clear the permission.public String getModifyAction()
public void setModifyAction(String ModifyAction)
ModifyAction
- If this parameter is specified, permissions are modified in batches. Valid values: `grant`, `revoke`.Copyright © 2021. All rights reserved.