public class ModifyCommandRequest extends AbstractModel
Constructor and Description |
---|
ModifyCommandRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getCommandId()
Get 命令ID。
|
String |
getCommandName()
Get 命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。
|
String |
getCommandType()
Get 命令类型,目前仅支持取值:SHELL。
|
String |
getContent()
Get Base64编码后的命令内容,长度不可超过64KB。
|
String |
getDefaultParameters()
Get 启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{\"varA\": \"222\"}。
采取整体全覆盖式修改,即修改时必须提供所有新默认值。
必须 Command 的 EnableParameter 为 true 时,才允许修改这个值。
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
自定义参数最多20个。
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
String |
getDescription()
Get 命令描述。不超过120字符。
|
Long |
getTimeout()
Get 命令超时时间,默认60秒。取值范围[1, 86400]。
|
String |
getWorkingDirectory()
Get 命令执行路径,默认:`/root`。
|
void |
setCommandId(String CommandId)
Set 命令ID。
|
void |
setCommandName(String CommandName)
Set 命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。
|
void |
setCommandType(String CommandType)
Set 命令类型,目前仅支持取值:SHELL。
|
void |
setContent(String Content)
Set Base64编码后的命令内容,长度不可超过64KB。
|
void |
setDefaultParameters(String DefaultParameters)
Set 启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{\"varA\": \"222\"}。
采取整体全覆盖式修改,即修改时必须提供所有新默认值。
必须 Command 的 EnableParameter 为 true 时,才允许修改这个值。
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
自定义参数最多20个。
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。
|
void |
setDescription(String Description)
Set 命令描述。不超过120字符。
|
void |
setTimeout(Long Timeout)
Set 命令超时时间,默认60秒。取值范围[1, 86400]。
|
void |
setWorkingDirectory(String WorkingDirectory)
Set 命令执行路径,默认:`/root`。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getCommandId()
public void setCommandId(String CommandId)
CommandId
- 命令ID。public String getCommandName()
public void setCommandName(String CommandName)
CommandName
- 命令名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。public String getDescription()
public void setDescription(String Description)
Description
- 命令描述。不超过120字符。public String getContent()
public void setContent(String Content)
Content
- Base64编码后的命令内容,长度不可超过64KB。public String getCommandType()
public void setCommandType(String CommandType)
CommandType
- 命令类型,目前仅支持取值:SHELL。public String getWorkingDirectory()
public void setWorkingDirectory(String WorkingDirectory)
WorkingDirectory
- 命令执行路径,默认:`/root`。public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout
- 命令超时时间,默认60秒。取值范围[1, 86400]。public String getDefaultParameters()
public void setDefaultParameters(String DefaultParameters)
DefaultParameters
- 启用自定义参数功能时,自定义参数的默认取值。字段类型为json encoded string。如:{\"varA\": \"222\"}。
采取整体全覆盖式修改,即修改时必须提供所有新默认值。
必须 Command 的 EnableParameter 为 true 时,才允许修改这个值。
key为自定义参数名称,value为该参数的默认取值。kv均为字符串型。
自定义参数最多20个。
自定义参数名称需符合以下规范:字符数目上限64,可选范围【a-zA-Z0-9-_】。Copyright © 2021. All rights reserved.