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 The name of the target data source.
|
String |
getColumn()
Get The name of the target column.
|
String |
getCreateTime()
Get The permission policy creation time, which is not required as an input parameter.
|
String |
getDatabase()
Get The name of the target database.
|
String |
getDataEngine()
Get The name of the target data engine.
|
String |
getFunction()
Get The name of the target function.
|
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 The name of the target table.
|
String |
getView()
Get The name of the target view.
|
void |
setCatalog(String Catalog)
Set The name of the target data source.
|
void |
setColumn(String Column)
Set The name of the target column.
|
void |
setCreateTime(String CreateTime)
Set The permission policy creation time, which is not required as an input parameter.
|
void |
setDatabase(String Database)
Set The name of the target database.
|
void |
setDataEngine(String DataEngine)
Set The name of the target data engine.
|
void |
setFunction(String Function)
Set The name of the target function.
|
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 The name of the target table.
|
void |
setView(String View)
Set The name of the target view.
|
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 Policy()
public Policy(Policy source)
public String getDatabase()
public void setDatabase(String Database)
Database
- The name of the target database. `*` represents all databases in the current catalog. To grant admin permissions, it must be `*`; to grant data connection permissions, it must be null; to grant other permissions, it can be any database.public String getCatalog()
public void setCatalog(String Catalog)
Catalog
- The name of the target data source. To grant admin permission, it must be `*` (all resources at this level); to grant data source and database permissions, it must be `COSDataCatalog` or `*`; to grant table permissions, it can be a custom data source; if it is left empty, `DataLakeCatalog` is used. Note: To grant permissions on a custom data source, the permissions that can be managed in the Data Lake Compute console are subsets of the account permissions granted when you connect the data source to the console.public String getTable()
public void setTable(String Table)
Table
- The name of the target table. `*` represents all tables in the current database. To grant admin permissions, it must be `*`; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any table.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
- The name of the target function. `*` represents all functions in the current catalog. To grant admin permissions, it must be `*`; to grant data connection permissions, it must be null; to grant other permissions, it can be any function.
Note: This field may return null, indicating that no valid values can be obtained.public String getView()
public void setView(String View)
View
- The name of the target view. `*` represents all views in the current database. To grant admin permissions, it must be `*`; to grant data connection and database permissions, it must be null; to grant other permissions, it can be any view.
Note: This field may return null, indicating that no valid values can be obtained.public String getColumn()
public void setColumn(String Column)
Column
- The name of the target column. `*` represents all columns. To grant admin permissions, it must be `*`.
Note: This field may return null, indicating that no valid values can be obtained.public String getDataEngine()
public void setDataEngine(String DataEngine)
DataEngine
- The name of the target data engine. `*` represents all engines. To grant admin permissions, it must be `*`.
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.Copyright © 2024. All rights reserved.