public class ModifyAccountPrivilegesRequest extends AbstractModel
header, skipSign
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 the 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 When this parameter is not empty, it indicates that the permission will be modified.
|
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 the 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 When this parameter is not empty, it indicates that the permission will be modified.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, 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", "CREATE USER", "RELOAD", "REPLICATION CLIENT", "REPLICATION SLAVE".
Note: When “ModifyAction” is empty, if `GlobalPrivileges` is not passed in, it indicates the global permission will become ineffective.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: When “ModifyAction” is empty, if `DatabasePrivileges` is not passed in, it indicates the permission of the database will become ineffective.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: When “ModifyAction” is empty, if `TablePrivileges` is not passed in, it indicates the permission of the table will become ineffective.public ColumnPrivilege[] getColumnPrivileges()
public void setColumnPrivileges(ColumnPrivilege[] ColumnPrivileges)
ColumnPrivileges
- Column permission in the table. Valid values: "SELECT", "INSERT", "UPDATE", "REFERENCES".
Note: When “ModifyAction” is empty, if `ColumnPrivileges` is not passed in, it indicates the permission of the column will become ineffective.public String getModifyAction()
public void setModifyAction(String ModifyAction)
ModifyAction
- When this parameter is not empty, it indicates that the permission will be modified. Valid values: `grant` (grant permission), `revoke` (revoke permission)Copyright © 2024. All rights reserved.