public class CreateWorkspaceTokenRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CreateWorkspaceTokenRequest() | 
| CreateWorkspaceTokenRequest(CreateWorkspaceTokenRequest 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[] | getPolicies()Get token 授权策略,可选值为 workspace-run-only, all。默认为 workspace-run-only | 
| String | getSpaceKey()Get 工作空间 SpaceKey | 
| Long | getTokenExpiredLimitSec()Get token过期时间,单位是秒,默认 3600 | 
| void | setPolicies(String[] Policies)Set token 授权策略,可选值为 workspace-run-only, all。默认为 workspace-run-only | 
| void | setSpaceKey(String SpaceKey)Set 工作空间 SpaceKey | 
| void | setTokenExpiredLimitSec(Long TokenExpiredLimitSec)Set token过期时间,单位是秒,默认 3600 | 
| 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 CreateWorkspaceTokenRequest()
public CreateWorkspaceTokenRequest(CreateWorkspaceTokenRequest source)
public String getSpaceKey()
public void setSpaceKey(String SpaceKey)
SpaceKey - 工作空间 SpaceKeypublic Long getTokenExpiredLimitSec()
public void setTokenExpiredLimitSec(Long TokenExpiredLimitSec)
TokenExpiredLimitSec - token过期时间,单位是秒,默认 3600public String[] getPolicies()
public void setPolicies(String[] Policies)
Policies - token 授权策略,可选值为 workspace-run-only, all。默认为 workspace-run-onlyCopyright © 2025. All rights reserved.