public class DeployApplicationRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
DeployApplicationRequest() |
DeployApplicationRequest(DeployApplicationRequest 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 |
getApplicationId()
Get 应用ID
|
Boolean |
getConfEdited()
Get (除开镜像配置)配置是否修改
|
Float |
getCpuSpec()
Get cpu规格 单位:核
|
CronHorizontalAutoscaler[] |
getCronHorizontalAutoscaler()
Get 定时弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
|
String |
getDeployMode()
Get 部署类型。
- JAR:通过 jar 包部署
- WAR:通过 war 包部署
- IMAGE:通过镜像部署
|
DeployStrategyConf |
getDeployStrategyConf()
Get 分批发布策略配置
|
String |
getDeployVersion()
Get 部署类型为 IMAGE 时,该参数表示镜像 tag。
部署类型为 JAR/WAR 时,该参数表示包版本号。
|
String |
getDescription()
Get 版本描述
|
Long |
getEnableMetrics()
Get 1:开始自动metrics采集(open-telemetry);
0:关闭metrics采集;
|
EnablePrometheusConf |
getEnablePrometheusConf()
Get metrics业务指标监控配置
|
Long |
getEnableTracing()
Get 1:开始自动apm采集(skywalking);
0:关闭apm采集;
|
Pair[] |
getEnvConf()
Get 环境变量配置
|
String |
getEnvironmentId()
Get 环境ID
|
EsInfo |
getEsInfo()
Get 弹性伸缩配置(已废弃,请使用HorizontalAutoscaler设置弹性策略)
|
HorizontalAutoscaler[] |
getHorizontalAutoscaler()
Get 弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
|
String[] |
getImageArgs()
Get 镜像命令参数
|
String |
getImageCommand()
Get 镜像命令
|
String |
getImgRepo()
Get 镜像仓库
|
Long |
getInitPodNum()
Get 初始化 pod 数
|
String |
getJdkVersion()
Get JDK 版本。
- KONA:8:使用 kona jdk 8。
- OPEN:8:使用 open jdk 8。
- KONA:11:使用 kona jdk 11。
- OPEN:11:使用 open jdk 11。
|
String |
getJvmOpts()
Get 启动参数
|
HealthCheckConfig |
getLiveness()
Get 存活探针配置
|
String[] |
getLogConfs()
Get 日志配置
|
Long |
getLogEnable()
Get 是否启用log,1为启用,0为不启用
|
LogOutputConf |
getLogOutputConf()
Get 日志输出配置
|
Float |
getMemorySpec()
Get 内存规格 单位:G
|
String |
getOsFlavour()
Get 操作系统版本;
当选择openjdk时,可选参数:
- ALPINE
- CENTOS
当选择konajdk时,可选参数:
- ALPINE
- TENCENTOS
|
String |
getPkgName()
Get 传入内容为 /jar包名字 的形式。也就是在 jar包名字前增加一个/。
如上传的 jar 包名字为 demo-1.0.0.jar,那么这里传入内容为:/demo-1.0.0.jar
注:jar 包需要通过 tem 页面上传过,tem 后端才能拉到该 jar 包。
|
String |
getPostStart()
Get 启动后执行的脚本
|
String |
getPostStartEncoded()
Get 启动后执行的脚本,base64 编码
|
String |
getPreStop()
Get 停止前执行的脚本
|
String |
getPreStopEncoded()
Get 停止前执行的脚本,base64 编码
|
HealthCheckConfig |
getReadiness()
Get 就绪探针配置
|
String |
getRepoServer()
Get 镜像部署时,选择的镜像服务器地址
|
Long |
getRepoType()
Get 镜像部署时,仓库类型:0:个人仓库;1:企业版;2:公共仓库;3:tem托管仓库;4:demo仓库
|
String[] |
getSecurityGroupIds()
Get 安全组ID s
|
EksService |
getService()
Get 应用访问设置
|
MountedSettingConf[] |
getSettingConfs()
Get 挂载配置信息
|
Long |
getSourceChannel()
Get 来源渠道
|
Boolean |
getSpeedUp()
Get 是否开启应用加速
|
HealthCheckConfig |
getStartupProbe()
Get 启动探针配置
|
StorageConf[] |
getStorageConfs()
Get 数据卷配置
|
StorageMountConf[] |
getStorageMountConfs()
Get 数据卷挂载配置
|
String |
getTcrInstanceId()
Get 镜像部署时,选择的tcr实例id
|
Boolean |
getUseRegistryDefaultConfig()
Get 是否添加默认注册中心配置
|
String |
getVersionDesc()
Get 版本描述信息
|
String |
getVersionId()
Get 要回滚到的历史版本id
|
void |
setApplicationId(String ApplicationId)
Set 应用ID
|
void |
setConfEdited(Boolean ConfEdited)
Set (除开镜像配置)配置是否修改
|
void |
setCpuSpec(Float CpuSpec)
Set cpu规格 单位:核
|
void |
setCronHorizontalAutoscaler(CronHorizontalAutoscaler[] CronHorizontalAutoscaler)
Set 定时弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
|
void |
setDeployMode(String DeployMode)
Set 部署类型。
- JAR:通过 jar 包部署
- WAR:通过 war 包部署
- IMAGE:通过镜像部署
|
void |
setDeployStrategyConf(DeployStrategyConf DeployStrategyConf)
Set 分批发布策略配置
|
void |
setDeployVersion(String DeployVersion)
Set 部署类型为 IMAGE 时,该参数表示镜像 tag。
部署类型为 JAR/WAR 时,该参数表示包版本号。
|
void |
setDescription(String Description)
Set 版本描述
|
void |
setEnableMetrics(Long EnableMetrics)
Set 1:开始自动metrics采集(open-telemetry);
0:关闭metrics采集;
|
void |
setEnablePrometheusConf(EnablePrometheusConf EnablePrometheusConf)
Set metrics业务指标监控配置
|
void |
setEnableTracing(Long EnableTracing)
Set 1:开始自动apm采集(skywalking);
0:关闭apm采集;
|
void |
setEnvConf(Pair[] EnvConf)
Set 环境变量配置
|
void |
setEnvironmentId(String EnvironmentId)
Set 环境ID
|
void |
setEsInfo(EsInfo EsInfo)
Set 弹性伸缩配置(已废弃,请使用HorizontalAutoscaler设置弹性策略)
|
void |
setHorizontalAutoscaler(HorizontalAutoscaler[] HorizontalAutoscaler)
Set 弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)
|
void |
setImageArgs(String[] ImageArgs)
Set 镜像命令参数
|
void |
setImageCommand(String ImageCommand)
Set 镜像命令
|
void |
setImgRepo(String ImgRepo)
Set 镜像仓库
|
void |
setInitPodNum(Long InitPodNum)
Set 初始化 pod 数
|
void |
setJdkVersion(String JdkVersion)
Set JDK 版本。
- KONA:8:使用 kona jdk 8。
- OPEN:8:使用 open jdk 8。
- KONA:11:使用 kona jdk 11。
- OPEN:11:使用 open jdk 11。
|
void |
setJvmOpts(String JvmOpts)
Set 启动参数
|
void |
setLiveness(HealthCheckConfig Liveness)
Set 存活探针配置
|
void |
setLogConfs(String[] LogConfs)
Set 日志配置
|
void |
setLogEnable(Long LogEnable)
Set 是否启用log,1为启用,0为不启用
|
void |
setLogOutputConf(LogOutputConf LogOutputConf)
Set 日志输出配置
|
void |
setMemorySpec(Float MemorySpec)
Set 内存规格 单位:G
|
void |
setOsFlavour(String OsFlavour)
Set 操作系统版本;
当选择openjdk时,可选参数:
- ALPINE
- CENTOS
当选择konajdk时,可选参数:
- ALPINE
- TENCENTOS
|
void |
setPkgName(String PkgName)
Set 传入内容为 /jar包名字 的形式。也就是在 jar包名字前增加一个/。
如上传的 jar 包名字为 demo-1.0.0.jar,那么这里传入内容为:/demo-1.0.0.jar
注:jar 包需要通过 tem 页面上传过,tem 后端才能拉到该 jar 包。
|
void |
setPostStart(String PostStart)
Set 启动后执行的脚本
|
void |
setPostStartEncoded(String PostStartEncoded)
Set 启动后执行的脚本,base64 编码
|
void |
setPreStop(String PreStop)
Set 停止前执行的脚本
|
void |
setPreStopEncoded(String PreStopEncoded)
Set 停止前执行的脚本,base64 编码
|
void |
setReadiness(HealthCheckConfig Readiness)
Set 就绪探针配置
|
void |
setRepoServer(String RepoServer)
Set 镜像部署时,选择的镜像服务器地址
|
void |
setRepoType(Long RepoType)
Set 镜像部署时,仓库类型:0:个人仓库;1:企业版;2:公共仓库;3:tem托管仓库;4:demo仓库
|
void |
setSecurityGroupIds(String[] SecurityGroupIds)
Set 安全组ID s
|
void |
setService(EksService Service)
Set 应用访问设置
|
void |
setSettingConfs(MountedSettingConf[] SettingConfs)
Set 挂载配置信息
|
void |
setSourceChannel(Long SourceChannel)
Set 来源渠道
|
void |
setSpeedUp(Boolean SpeedUp)
Set 是否开启应用加速
|
void |
setStartupProbe(HealthCheckConfig StartupProbe)
Set 启动探针配置
|
void |
setStorageConfs(StorageConf[] StorageConfs)
Set 数据卷配置
|
void |
setStorageMountConfs(StorageMountConf[] StorageMountConfs)
Set 数据卷挂载配置
|
void |
setTcrInstanceId(String TcrInstanceId)
Set 镜像部署时,选择的tcr实例id
|
void |
setUseRegistryDefaultConfig(Boolean UseRegistryDefaultConfig)
Set 是否添加默认注册中心配置
|
void |
setVersionDesc(String VersionDesc)
Set 版本描述信息
|
void |
setVersionId(String VersionId)
Set 要回滚到的历史版本id
|
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, toJsonString
public DeployApplicationRequest()
public DeployApplicationRequest(DeployApplicationRequest source)
public String getApplicationId()
public void setApplicationId(String ApplicationId)
ApplicationId
- 应用IDpublic Long getInitPodNum()
public void setInitPodNum(Long InitPodNum)
InitPodNum
- 初始化 pod 数public Float getCpuSpec()
public void setCpuSpec(Float CpuSpec)
CpuSpec
- cpu规格 单位:核public Float getMemorySpec()
public void setMemorySpec(Float MemorySpec)
MemorySpec
- 内存规格 单位:Gpublic String getEnvironmentId()
public void setEnvironmentId(String EnvironmentId)
EnvironmentId
- 环境IDpublic String getDeployVersion()
public void setDeployVersion(String DeployVersion)
DeployVersion
- 部署类型为 IMAGE 时,该参数表示镜像 tag。
部署类型为 JAR/WAR 时,该参数表示包版本号。public String getImgRepo()
public void setImgRepo(String ImgRepo)
ImgRepo
- 镜像仓库public String getVersionDesc()
public void setVersionDesc(String VersionDesc)
VersionDesc
- 版本描述信息public String getJvmOpts()
public void setJvmOpts(String JvmOpts)
JvmOpts
- 启动参数public EsInfo getEsInfo()
public void setEsInfo(EsInfo EsInfo)
EsInfo
- 弹性伸缩配置(已废弃,请使用HorizontalAutoscaler设置弹性策略)public Pair[] getEnvConf()
public void setEnvConf(Pair[] EnvConf)
EnvConf
- 环境变量配置public String[] getLogConfs()
public void setLogConfs(String[] LogConfs)
LogConfs
- 日志配置public StorageConf[] getStorageConfs()
public void setStorageConfs(StorageConf[] StorageConfs)
StorageConfs
- 数据卷配置public StorageMountConf[] getStorageMountConfs()
public void setStorageMountConfs(StorageMountConf[] StorageMountConfs)
StorageMountConfs
- 数据卷挂载配置public String getDeployMode()
public void setDeployMode(String DeployMode)
DeployMode
- 部署类型。
- JAR:通过 jar 包部署
- WAR:通过 war 包部署
- IMAGE:通过镜像部署public String getPkgName()
public void setPkgName(String PkgName)
PkgName
- 传入内容为 /jar包名字 的形式。也就是在 jar包名字前增加一个/。
如上传的 jar 包名字为 demo-1.0.0.jar,那么这里传入内容为:/demo-1.0.0.jar
注:jar 包需要通过 tem 页面上传过,tem 后端才能拉到该 jar 包。public String getJdkVersion()
public void setJdkVersion(String JdkVersion)
JdkVersion
- JDK 版本。
- KONA:8:使用 kona jdk 8。
- OPEN:8:使用 open jdk 8。
- KONA:11:使用 kona jdk 11。
- OPEN:11:使用 open jdk 11。public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- 安全组ID spublic LogOutputConf getLogOutputConf()
public void setLogOutputConf(LogOutputConf LogOutputConf)
LogOutputConf
- 日志输出配置public Long getSourceChannel()
public void setSourceChannel(Long SourceChannel)
SourceChannel
- 来源渠道public String getDescription()
public void setDescription(String Description)
Description
- 版本描述public String getImageCommand()
public void setImageCommand(String ImageCommand)
ImageCommand
- 镜像命令public String[] getImageArgs()
public void setImageArgs(String[] ImageArgs)
ImageArgs
- 镜像命令参数public Boolean getUseRegistryDefaultConfig()
public void setUseRegistryDefaultConfig(Boolean UseRegistryDefaultConfig)
UseRegistryDefaultConfig
- 是否添加默认注册中心配置public MountedSettingConf[] getSettingConfs()
public void setSettingConfs(MountedSettingConf[] SettingConfs)
SettingConfs
- 挂载配置信息public EksService getService()
public void setService(EksService Service)
Service
- 应用访问设置public String getVersionId()
public void setVersionId(String VersionId)
VersionId
- 要回滚到的历史版本idpublic String getPostStart()
public void setPostStart(String PostStart)
PostStart
- 启动后执行的脚本public String getPreStop()
public void setPreStop(String PreStop)
PreStop
- 停止前执行的脚本public HealthCheckConfig getLiveness()
public void setLiveness(HealthCheckConfig Liveness)
Liveness
- 存活探针配置public HealthCheckConfig getReadiness()
public void setReadiness(HealthCheckConfig Readiness)
Readiness
- 就绪探针配置public DeployStrategyConf getDeployStrategyConf()
public void setDeployStrategyConf(DeployStrategyConf DeployStrategyConf)
DeployStrategyConf
- 分批发布策略配置public HorizontalAutoscaler[] getHorizontalAutoscaler()
public void setHorizontalAutoscaler(HorizontalAutoscaler[] HorizontalAutoscaler)
HorizontalAutoscaler
- 弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)public CronHorizontalAutoscaler[] getCronHorizontalAutoscaler()
public void setCronHorizontalAutoscaler(CronHorizontalAutoscaler[] CronHorizontalAutoscaler)
CronHorizontalAutoscaler
- 定时弹性策略(已弃用,请使用弹性伸缩策略组合相关接口)public Long getLogEnable()
public void setLogEnable(Long LogEnable)
LogEnable
- 是否启用log,1为启用,0为不启用public Boolean getConfEdited()
public void setConfEdited(Boolean ConfEdited)
ConfEdited
- (除开镜像配置)配置是否修改public Boolean getSpeedUp()
public void setSpeedUp(Boolean SpeedUp)
SpeedUp
- 是否开启应用加速public HealthCheckConfig getStartupProbe()
public void setStartupProbe(HealthCheckConfig StartupProbe)
StartupProbe
- 启动探针配置public String getOsFlavour()
public void setOsFlavour(String OsFlavour)
OsFlavour
- 操作系统版本;
当选择openjdk时,可选参数:
- ALPINE
- CENTOS
当选择konajdk时,可选参数:
- ALPINE
- TENCENTOSpublic EnablePrometheusConf getEnablePrometheusConf()
public void setEnablePrometheusConf(EnablePrometheusConf EnablePrometheusConf)
EnablePrometheusConf
- metrics业务指标监控配置public Long getEnableTracing()
public void setEnableTracing(Long EnableTracing)
EnableTracing
- 1:开始自动apm采集(skywalking);
0:关闭apm采集;public Long getEnableMetrics()
public void setEnableMetrics(Long EnableMetrics)
EnableMetrics
- 1:开始自动metrics采集(open-telemetry);
0:关闭metrics采集;public String getTcrInstanceId()
public void setTcrInstanceId(String TcrInstanceId)
TcrInstanceId
- 镜像部署时,选择的tcr实例idpublic String getRepoServer()
public void setRepoServer(String RepoServer)
RepoServer
- 镜像部署时,选择的镜像服务器地址public Long getRepoType()
public void setRepoType(Long RepoType)
RepoType
- 镜像部署时,仓库类型:0:个人仓库;1:企业版;2:公共仓库;3:tem托管仓库;4:demo仓库public String getPostStartEncoded()
public void setPostStartEncoded(String PostStartEncoded)
PostStartEncoded
- 启动后执行的脚本,base64 编码public String getPreStopEncoded()
public void setPreStopEncoded(String PreStopEncoded)
PreStopEncoded
- 停止前执行的脚本,base64 编码Copyright © 2024. All rights reserved.