public class CreateServerlessappserviceVersionRequest extends cn.com.antcloud.api.antcloud.provider.AntCloudProviderRequest<CreateServerlessappserviceVersionResponse>
| 构造器和说明 |
|---|
CreateServerlessappserviceVersionRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAppServiceName()
应用实例名称
|
String |
getBuildMode()
构建模式,枚举,取值如下:
IMAGE:镜像模式运行
CODE_PACKAGE:代码包模式运行
创建后不可修改
|
CheckService |
getCheckService()
服务检查
|
String |
getCodeImageUrl()
构建模式是镜像模式时, 镜像在aks上的地址.
|
CodePackage |
getCodePackage()
代码包.
|
Long |
getCpuOversoldRatio()
cpu超卖比, 默认为1
|
List<EnvironmentVariable> |
getCustomVariables()
自定义环境信息.
|
String |
getDescription()
版本描述
|
String |
getEntryPoint()
当构建模式是代码包时需要.
|
String |
getExecutionMode()
如果应用实例的构建模式 是代码包时必填.
|
Long |
getExpiredAfter()
该版本流量比为0时过多久会自动删除.
|
String |
getFullVersion()
版本号
|
Boolean |
getIsAllTrafficToThisVersion()
是否新版本的流量比是100%
|
String |
getMaxAverageCpuUtilizationPercent()
实际为Double类型。
|
String |
getMaxAverageMemUtilizationPercent()
实际为Double类型。
|
Long |
getMaxComputeInstance()
该版本的最大实例数
|
Long |
getMaxConcurrencyPerInstance()
单实例最大并发度
|
Long |
getMaxResponseTimeInMs()
单位毫秒。
|
String |
getMinAverageCpuUtilizationPercent()
实际为Double类型。
|
String |
getMinAverageMemUtilizationPercent()
实际为Double类型。
|
Long |
getMinComputeInstance()
版本最小实例数
|
Long |
getMinResponseTimeInMs()
单位毫秒。
|
Long |
getRouteWeight()
设置历史版本的流量权重
|
String |
getRuntimeIdentity()
使用的运行时标识
应用实例的构建模式为代码包时必填
|
List<EnvironmentVariable> |
getRuntimeVariables()
运行时环境变量
要填name, value信息
|
Long |
getServicePort()
公网域名转发到的后端pod端口.
|
Boolean |
getShared()
是否是共享集群
如果是共享集群, 则需要填写cluster
默认为true
|
String |
getSpecIdentity()
使用的规格标识
|
List<VersionRouteInfo> |
getVersionRouteInfos()
历史版本权重信息
|
String |
getWorkspace()
环境标识
|
void |
setAppServiceName(String appServiceName)
应用实例名称
|
void |
setBuildMode(String buildMode)
构建模式,枚举,取值如下:
IMAGE:镜像模式运行
CODE_PACKAGE:代码包模式运行
创建后不可修改
|
void |
setCheckService(CheckService checkService)
服务检查
|
void |
setCodeImageUrl(String codeImageUrl)
构建模式是镜像模式时, 镜像在aks上的地址.
|
void |
setCodePackage(CodePackage codePackage)
代码包.
|
void |
setCpuOversoldRatio(Long cpuOversoldRatio)
cpu超卖比, 默认为1
|
void |
setCustomVariables(List<EnvironmentVariable> customVariables)
自定义环境信息.
|
void |
setDescription(String description)
版本描述
|
void |
setEntryPoint(String entryPoint)
当构建模式是代码包时需要.
|
void |
setExecutionMode(String executionMode)
如果应用实例的构建模式 是代码包时必填.
|
void |
setExpiredAfter(Long expiredAfter)
该版本流量比为0时过多久会自动删除.
|
void |
setFullVersion(String fullVersion)
版本号
|
void |
setIsAllTrafficToThisVersion(Boolean isAllTrafficToThisVersion)
是否新版本的流量比是100%
|
void |
setMaxAverageCpuUtilizationPercent(String maxAverageCpuUtilizationPercent)
实际为Double类型。
|
void |
setMaxAverageMemUtilizationPercent(String maxAverageMemUtilizationPercent)
实际为Double类型。
|
void |
setMaxComputeInstance(Long maxComputeInstance)
该版本的最大实例数
|
void |
setMaxConcurrencyPerInstance(Long maxConcurrencyPerInstance)
单实例最大并发度
|
void |
setMaxResponseTimeInMs(Long maxResponseTimeInMs)
单位毫秒。
|
void |
setMinAverageCpuUtilizationPercent(String minAverageCpuUtilizationPercent)
实际为Double类型。
|
void |
setMinAverageMemUtilizationPercent(String minAverageMemUtilizationPercent)
实际为Double类型。
|
void |
setMinComputeInstance(Long minComputeInstance)
版本最小实例数
|
void |
setMinResponseTimeInMs(Long minResponseTimeInMs)
单位毫秒。
|
void |
setRouteWeight(Long routeWeight)
设置历史版本的流量权重
|
void |
setRuntimeIdentity(String runtimeIdentity)
使用的运行时标识
应用实例的构建模式为代码包时必填
|
void |
setRuntimeVariables(List<EnvironmentVariable> runtimeVariables)
运行时环境变量
要填name, value信息
|
void |
setServicePort(Long servicePort)
公网域名转发到的后端pod端口.
|
void |
setShared(Boolean shared)
是否是共享集群
如果是共享集群, 则需要填写cluster
默认为true
|
void |
setSpecIdentity(String specIdentity)
使用的规格标识
|
void |
setVersionRouteInfos(List<VersionRouteInfo> versionRouteInfos)
历史版本权重信息
|
void |
setWorkspace(String workspace)
环境标识
|
public String getAppServiceName()
public void setAppServiceName(String appServiceName)
public String getBuildMode()
public void setBuildMode(String buildMode)
public CheckService getCheckService()
public void setCheckService(CheckService checkService)
public String getCodeImageUrl()
public void setCodeImageUrl(String codeImageUrl)
public CodePackage getCodePackage()
public void setCodePackage(CodePackage codePackage)
public Long getCpuOversoldRatio()
public void setCpuOversoldRatio(Long cpuOversoldRatio)
public List<EnvironmentVariable> getCustomVariables()
public void setCustomVariables(List<EnvironmentVariable> customVariables)
public String getDescription()
public void setDescription(String description)
public String getEntryPoint()
public void setEntryPoint(String entryPoint)
public String getExecutionMode()
public void setExecutionMode(String executionMode)
public Long getExpiredAfter()
public void setExpiredAfter(Long expiredAfter)
public String getFullVersion()
public void setFullVersion(String fullVersion)
public Boolean getIsAllTrafficToThisVersion()
public void setIsAllTrafficToThisVersion(Boolean isAllTrafficToThisVersion)
public String getMaxAverageCpuUtilizationPercent()
public void setMaxAverageCpuUtilizationPercent(String maxAverageCpuUtilizationPercent)
public String getMaxAverageMemUtilizationPercent()
public void setMaxAverageMemUtilizationPercent(String maxAverageMemUtilizationPercent)
public Long getMaxComputeInstance()
public void setMaxComputeInstance(Long maxComputeInstance)
public Long getMaxConcurrencyPerInstance()
public void setMaxConcurrencyPerInstance(Long maxConcurrencyPerInstance)
public Long getMaxResponseTimeInMs()
public void setMaxResponseTimeInMs(Long maxResponseTimeInMs)
public String getMinAverageCpuUtilizationPercent()
public void setMinAverageCpuUtilizationPercent(String minAverageCpuUtilizationPercent)
public String getMinAverageMemUtilizationPercent()
public void setMinAverageMemUtilizationPercent(String minAverageMemUtilizationPercent)
public Long getMinComputeInstance()
public void setMinComputeInstance(Long minComputeInstance)
public Long getMinResponseTimeInMs()
public void setMinResponseTimeInMs(Long minResponseTimeInMs)
public Long getRouteWeight()
public void setRouteWeight(Long routeWeight)
public String getRuntimeIdentity()
public void setRuntimeIdentity(String runtimeIdentity)
public List<EnvironmentVariable> getRuntimeVariables()
public void setRuntimeVariables(List<EnvironmentVariable> runtimeVariables)
public Long getServicePort()
public void setServicePort(Long servicePort)
public Boolean getShared()
public void setShared(Boolean shared)
public String getSpecIdentity()
public void setSpecIdentity(String specIdentity)
public List<VersionRouteInfo> getVersionRouteInfos()
public void setVersionRouteInfos(List<VersionRouteInfo> versionRouteInfos)
public String getWorkspace()
public void setWorkspace(String workspace)
Copyright © 2019. All Rights Reserved.