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 host address.
|
ColumnPrivilege[] |
getColumnPrivileges()
Get Column permission.
|
DatabasePrivilege[] |
getDatabasePrivileges()
Get Database permission.
|
FunctionPrivilege[] |
getFunctionPrivileges()
Get Database function permissions.
|
String[] |
getGlobalPrivileges()
Get Global permission.
|
String |
getInstanceId()
Get Instance ID in the format of tdsql-c1nl9rpv.
|
ProcedurePrivilege[] |
getProcedurePrivileges()
Get Database stored procedure permission.
|
TablePrivilege[] |
getTablePrivileges()
Get Database table permission.
|
ViewPrivileges[] |
getViewPrivileges()
Get Database view permission.
|
void |
setAccounts(Account[] Accounts)
Set Database account, including username and host address.
|
void |
setColumnPrivileges(ColumnPrivilege[] ColumnPrivileges)
Set Column permission.
|
void |
setDatabasePrivileges(DatabasePrivilege[] DatabasePrivileges)
Set Database permission.
|
void |
setFunctionPrivileges(FunctionPrivilege[] FunctionPrivileges)
Set Database function permissions.
|
void |
setGlobalPrivileges(String[] GlobalPrivileges)
Set Global permission.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of tdsql-c1nl9rpv.
|
void |
setProcedurePrivileges(ProcedurePrivilege[] ProcedurePrivileges)
Set Database stored procedure permission.
|
void |
setTablePrivileges(TablePrivilege[] TablePrivileges)
Set Database table permission.
|
void |
setViewPrivileges(ViewPrivileges[] ViewPrivileges)
Set Database view permission.
|
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 tdsql-c1nl9rpv. It is the same as the instance ID displayed in the TencentDB console.public Account[] getAccounts()
public void setAccounts(Account[] Accounts)
Accounts
- Database account, including username and host address.public String[] getGlobalPrivileges()
public void setGlobalPrivileges(String[] GlobalPrivileges)
GlobalPrivileges
- Global permission. Valid values of `GlobalPrivileges`: `"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 the parameter is left empty, no change will be made to the granted global permissions. To clear the granted global permissions, set the parameter to an empty array.public DatabasePrivilege[] getDatabasePrivileges()
public void setDatabasePrivileges(DatabasePrivilege[] DatabasePrivileges)
DatabasePrivileges
- Database permission. Valid values of `Privileges`: `"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 the parameter is left empty, no change will be made to the granted database permissions. To clear the granted database permissions, set `Privileges` to an empty array.public TablePrivilege[] getTablePrivileges()
public void setTablePrivileges(TablePrivilege[] TablePrivileges)
TablePrivileges
- Database table permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
Note: if the parameter is not passed in, no change will be made to the granted table permissions. To clear the granted table permissions, set `Privileges` to an empty array.public ColumnPrivilege[] getColumnPrivileges()
public void setColumnPrivileges(ColumnPrivilege[] ColumnPrivileges)
ColumnPrivileges
- Column permission. Valid values of `Privileges`: `"SELECT"`, `"INSERT"`, `"UPDATE"`, `"REFERENCES"`.
Note: if the parameter is left empty, no change will be made to the granted column permissions. To clear the granted column permissions, set `Privileges` to an empty array.public ViewPrivileges[] getViewPrivileges()
public void setViewPrivileges(ViewPrivileges[] ViewPrivileges)
ViewPrivileges
- Database view permission. Valid values of `Privileges`: `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `REFERENCES`, `INDEX`, `ALTER`, `CREATE VIEW`, `SHOW VIEW`, `TRIGGER`.
Note: if the parameter is not passed in, no change will be made to the granted view permissions. To clear the granted view permissions, set `Privileges` to an empty array.public FunctionPrivilege[] getFunctionPrivileges()
public void setFunctionPrivileges(FunctionPrivilege[] FunctionPrivileges)
FunctionPrivileges
- Database function permissions. Valid values of `Privileges`: `ALTER ROUTINE`, `EXECUTE`.
Note: if the parameter is not passed in, no change will be made to the granted function permissions. To clear the granted function permissions, set `Privileges` to an empty array.public ProcedurePrivilege[] getProcedurePrivileges()
public void setProcedurePrivileges(ProcedurePrivilege[] ProcedurePrivileges)
ProcedurePrivileges
- Database stored procedure permission. Valid values of `Privileges`: `ALTER ROUTINE`, `EXECUTE`.
Note: if the parameter is not passed in, no change will be made to the granted stored procedure permissions. To clear the granted stored procedure permissions, set `Privileges` to an empty array.Copyright © 2023. All rights reserved.