public class Policy extends AbstractModel
header, skipSign| Constructor and Description |
|---|
Policy() |
Policy(Policy 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 |
getCatalog()
Get Specifies the name of the data source requiring authorization.
|
String |
getColumn()
Get Columns requiring authorization.
|
String |
getCreateTime()
Get The permission policy creation time, which is not required as an input parameter.
|
String |
getDatabase()
Get The database name requiring authorization.
|
String |
getDataEngine()
Get The data engine requiring authorization.
|
String |
getEngineGeneration()
Get Specifies the engine type.
|
String |
getFunction()
Get Name of the function requiring authorization.
|
Long |
getId()
Get The policy ID.
|
String |
getMode()
Get The grant mode, which is not required as an input parameter.
|
String |
getOperation()
Get The target permissions, which vary by permission level.
|
String |
getOperator()
Get The operator, which is not required as an input parameter.
|
String |
getPolicyType()
Get The permission type.
|
Boolean |
getReAuth()
Get Whether the grantee is allowed to further grant the permissions.
|
String |
getSource()
Get The permission source, which is not required when input parameters are passed in.
|
Long |
getSourceId()
Get The ID of the work group, which applies only when the value of the `Source` field is `WORKGROUP`.
|
String |
getSourceName()
Get The name of the work group, which applies only when the value of the `Source` field is `WORKGROUP`.
|
String |
getTable()
Get Specifies the table name requiring authorization.
|
String |
getView()
Get Authorization is required for the view.
|
void |
setCatalog(String Catalog)
Set Specifies the name of the data source requiring authorization.
|
void |
setColumn(String Column)
Set Columns requiring authorization.
|
void |
setCreateTime(String CreateTime)
Set The permission policy creation time, which is not required as an input parameter.
|
void |
setDatabase(String Database)
Set The database name requiring authorization.
|
void |
setDataEngine(String DataEngine)
Set The data engine requiring authorization.
|
void |
setEngineGeneration(String EngineGeneration)
Set Specifies the engine type.
|
void |
setFunction(String Function)
Set Name of the function requiring authorization.
|
void |
setId(Long Id)
Set The policy ID.
|
void |
setMode(String Mode)
Set The grant mode, which is not required as an input parameter.
|
void |
setOperation(String Operation)
Set The target permissions, which vary by permission level.
|
void |
setOperator(String Operator)
Set The operator, which is not required as an input parameter.
|
void |
setPolicyType(String PolicyType)
Set The permission type.
|
void |
setReAuth(Boolean ReAuth)
Set Whether the grantee is allowed to further grant the permissions.
|
void |
setSource(String Source)
Set The permission source, which is not required when input parameters are passed in.
|
void |
setSourceId(Long SourceId)
Set The ID of the work group, which applies only when the value of the `Source` field is `WORKGROUP`.
|
void |
setSourceName(String SourceName)
Set The name of the work group, which applies only when the value of the `Source` field is `WORKGROUP`.
|
void |
setTable(String Table)
Set Specifies the table name requiring authorization.
|
void |
setView(String View)
Set Authorization is required for the view.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Policy()
public Policy(Policy source)
public String getDatabase()
public void setDatabase(String Database)
Database - The database name requiring authorization. use * to represent all databases under the current Catalog. for administrator level authorization type, only * is allowed. for data connection level authorization type, leave it blank. for other types, any specified database is allowed.public String getCatalog()
public void setCatalog(String Catalog)
Catalog - Specifies the name of the data source requiring authorization. at administrator level, only * is supported (representing all resources at this level). for database-level or data source-level authentication, only COSDataCatalog or * is supported. for table-level authentication, user-defined data sources can be filled. defaults to DataLakeCatalog if left blank. note: if authenticating a user-defined data source, the permissions DLC can manage are a subset of the account provided when the user accesses the data source.public String getTable()
public void setTable(String Table)
Table - Specifies the table name requiring authorization. use * to represent all tables in the current Database. for administrator-level authorization type, only * is allowed. for data connection level or Database-level authorization type, leave it blank. for other types, any specific data table can be specified.public String getOperation()
public void setOperation(String Operation)
Operation - The target permissions, which vary by permission level. Admin: `ALL` (default); data connection: `CREATE`; database: `ALL`, `CREATE`, `ALTER`, and `DROP`; table: `ALL`, `SELECT`, `INSERT`, `ALTER`, `DELETE`, `DROP`, and `UPDATE`. Note: For table permissions, if a data source other than `COSDataCatalog` is specified, only the `SELECT` permission can be granted here.public String getPolicyType()
public void setPolicyType(String PolicyType)
PolicyType - The permission type. Valid values: `ADMIN`, `DATASOURCE`, `DATABASE`, `TABLE`, `VIEW`, `FUNCTION`, `COLUMN`, and `ENGINE`. Note: If it is left empty, `ADMIN` is used.public String getFunction()
public void setFunction(String Function)
Function - Name of the function requiring authorization. use * to represent all functions in the current Catalog. for administrator-level authorization type, only * is allowed. for data connection-level authorization type, leave it blank. for other types, any function can be specified.
Note: This field may return null, indicating that no valid values can be obtained.public String getView()
public void setView(String View)
View - Authorization is required for the view. fill in * to represent all views under the current Database. when the authorization type is administrator level, only * is allowed. when the authorization type is data connection level or Database level, only blank is allowed. for other types, any view can be specified.
Note: This field may return null, indicating that no valid values can be obtained.public String getColumn()
public void setColumn(String Column)
Column - Columns requiring authorization. use * to represent all current columns. when the authorization type is administrator level, only * is allowed.
Note: This field may return null, indicating that no valid values can be obtained.public String getDataEngine()
public void setDataEngine(String DataEngine)
DataEngine - The data engine requiring authorization. use * to represent all current engines. when the authorization type is administrator level, only * is allowed.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getReAuth()
public void setReAuth(Boolean ReAuth)
ReAuth - Whether the grantee is allowed to further grant the permissions. Valid values: `false` (default) and `true` (the grantee can grant permissions gained here to other sub-users).
Note: This field may return null, indicating that no valid values can be obtained.public String getSource()
public void setSource(String Source)
Source - The permission source, which is not required when input parameters are passed in. Valid values: `USER` (from the user) and `WORKGROUP` (from one or more associated work groups).
Note: This field may return null, indicating that no valid values can be obtained.public String getMode()
public void setMode(String Mode)
Mode - The grant mode, which is not required as an input parameter. Valid values: `COMMON` and `SENIOR`.
Note: This field may return null, indicating that no valid values can be obtained.public String getOperator()
public void setOperator(String Operator)
Operator - The operator, which is not required as an input parameter.
Note: This field may return null, indicating that no valid values can be obtained.public String getCreateTime()
public void setCreateTime(String CreateTime)
CreateTime - The permission policy creation time, which is not required as an input parameter.
Note: This field may return null, indicating that no valid values can be obtained.public Long getSourceId()
public void setSourceId(Long SourceId)
SourceId - The ID of the work group, which applies only when the value of the `Source` field is `WORKGROUP`.
Note: This field may return null, indicating that no valid values can be obtained.public String getSourceName()
public void setSourceName(String SourceName)
SourceName - The name of the work group, which applies only when the value of the `Source` field is `WORKGROUP`.
Note: This field may return null, indicating that no valid values can be obtained.public Long getId()
public void setId(Long Id)
Id - The policy ID.
Note: This field may return null, indicating that no valid values can be obtained.public String getEngineGeneration()
public void setEngineGeneration(String EngineGeneration)
EngineGeneration - Specifies the engine type.Copyright © 2025. All rights reserved.