public class Permission extends AbstractModel
skipSign
Constructor and Description |
---|
Permission() |
Permission(Permission 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[] |
getActions()
Get 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getResource()
Get 资源路径,目前仅支持Namespace
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setActions(String[] Actions)
Set 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setResource(String Resource)
Set 资源路径,目前仅支持Namespace
注意:此字段可能返回 null,表示取不到有效值。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Permission()
public Permission(Permission source)
public String getResource()
public void setResource(String Resource)
Resource
- 资源路径,目前仅支持Namespace
注意:此字段可能返回 null,表示取不到有效值。public String[] getActions()
public void setActions(String[] Actions)
Actions
- 动作,目前仅支持:tcr:PushRepository、tcr:PullRepository
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2023. All rights reserved.