Class CreateWorkspaceTokenRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cloudstudio.v20230508.models.CreateWorkspaceTokenRequest
-
public class CreateWorkspaceTokenRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getPolicies()
Get token 授权策略,可选值为 workspace-run-only, all。默认为 allString
getSpaceKey()
Get 工作空间 SpaceKeyLong
getTokenExpiredLimitSec()
Get token过期时间,单位是秒,默认 3600void
setPolicies(String[] Policies)
Set token 授权策略,可选值为 workspace-run-only, all。默认为 allvoid
setSpaceKey(String SpaceKey)
Set 工作空间 SpaceKeyvoid
setTokenExpiredLimitSec(Long TokenExpiredLimitSec)
Set token过期时间,单位是秒,默认 3600void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
CreateWorkspaceTokenRequest
public CreateWorkspaceTokenRequest()
-
CreateWorkspaceTokenRequest
public 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.
-
-
Method Detail
-
getSpaceKey
public String getSpaceKey()
Get 工作空间 SpaceKey- Returns:
- SpaceKey 工作空间 SpaceKey
-
setSpaceKey
public void setSpaceKey(String SpaceKey)
Set 工作空间 SpaceKey- Parameters:
SpaceKey
- 工作空间 SpaceKey
-
getTokenExpiredLimitSec
public Long getTokenExpiredLimitSec()
Get token过期时间,单位是秒,默认 3600- Returns:
- TokenExpiredLimitSec token过期时间,单位是秒,默认 3600
-
setTokenExpiredLimitSec
public void setTokenExpiredLimitSec(Long TokenExpiredLimitSec)
Set token过期时间,单位是秒,默认 3600- Parameters:
TokenExpiredLimitSec
- token过期时间,单位是秒,默认 3600
-
getPolicies
public String[] getPolicies()
Get token 授权策略,可选值为 workspace-run-only, all。默认为 all- Returns:
- Policies token 授权策略,可选值为 workspace-run-only, all。默认为 all
-
setPolicies
public void setPolicies(String[] Policies)
Set token 授权策略,可选值为 workspace-run-only, all。默认为 all- Parameters:
Policies
- token 授权策略,可选值为 workspace-run-only, all。默认为 all
-
-