public class Container extends AbstractModel
header, skipSign
Constructor and Description |
---|
Container() |
Container(Container 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[] |
getArgs()
Get 容器启动参数
|
String[] |
getCommands()
Get 容器启动命令
|
Float |
getCpu()
Get CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。
|
ContainerState |
getCurrentState()
Get 当前状态
注意:此字段可能返回 null,表示取不到有效值。
|
EnvironmentVariable[] |
getEnvironmentVars()
Get 容器内操作系统的环境变量
|
Long |
getGpuLimit()
Get Gpu限制
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getImage()
Get 镜像
|
LivenessOrReadinessProbe |
getLivenessProbe()
Get 存活探针
注意:此字段可能返回 null,表示取不到有效值。
|
Float |
getMemory()
Get 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB
|
String |
getName()
Get 容器名
|
LivenessOrReadinessProbe |
getReadinessProbe()
Get 就绪探针
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getRestartCount()
Get 重启次数
注意:此字段可能返回 null,表示取不到有效值。
|
SecurityContext |
getSecurityContext()
Get 容器的安全上下文
注意:此字段可能返回 null,表示取不到有效值。
|
VolumeMount[] |
getVolumeMounts()
Get 数据卷挂载信息
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getWorkingDir()
Get 容器工作目录
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setArgs(String[] Args)
Set 容器启动参数
|
void |
setCommands(String[] Commands)
Set 容器启动命令
|
void |
setCpu(Float Cpu)
Set CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。
|
void |
setCurrentState(ContainerState CurrentState)
Set 当前状态
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setEnvironmentVars(EnvironmentVariable[] EnvironmentVars)
Set 容器内操作系统的环境变量
|
void |
setGpuLimit(Long GpuLimit)
Set Gpu限制
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setImage(String Image)
Set 镜像
|
void |
setLivenessProbe(LivenessOrReadinessProbe LivenessProbe)
Set 存活探针
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setMemory(Float Memory)
Set 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiB
|
void |
setName(String Name)
Set 容器名
|
void |
setReadinessProbe(LivenessOrReadinessProbe ReadinessProbe)
Set 就绪探针
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRestartCount(Long RestartCount)
Set 重启次数
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSecurityContext(SecurityContext SecurityContext)
Set 容器的安全上下文
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setVolumeMounts(VolumeMount[] VolumeMounts)
Set 数据卷挂载信息
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setWorkingDir(String WorkingDir)
Set 容器工作目录
注意:此字段可能返回 null,表示取不到有效值。
|
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 Container()
public Container(Container source)
public String getImage()
public void setImage(String Image)
Image
- 镜像public String getName()
public void setName(String Name)
Name
- 容器名public String[] getCommands()
public void setCommands(String[] Commands)
Commands
- 容器启动命令public String[] getArgs()
public void setArgs(String[] Args)
Args
- 容器启动参数public EnvironmentVariable[] getEnvironmentVars()
public void setEnvironmentVars(EnvironmentVariable[] EnvironmentVars)
EnvironmentVars
- 容器内操作系统的环境变量public Float getCpu()
public void setCpu(Float Cpu)
Cpu
- CPU,制改容器最多可使用的核数,该值不可超过容器实例的总核数。单位:核。public Float getMemory()
public void setMemory(Float Memory)
Memory
- 内存,限制该容器最多可使用的内存值,该值不可超过容器实例的总内存值。单位:GiBpublic VolumeMount[] getVolumeMounts()
public void setVolumeMounts(VolumeMount[] VolumeMounts)
VolumeMounts
- 数据卷挂载信息
注意:此字段可能返回 null,表示取不到有效值。public ContainerState getCurrentState()
public void setCurrentState(ContainerState CurrentState)
CurrentState
- 当前状态
注意:此字段可能返回 null,表示取不到有效值。public Long getRestartCount()
public void setRestartCount(Long RestartCount)
RestartCount
- 重启次数
注意:此字段可能返回 null,表示取不到有效值。public String getWorkingDir()
public void setWorkingDir(String WorkingDir)
WorkingDir
- 容器工作目录
注意:此字段可能返回 null,表示取不到有效值。public LivenessOrReadinessProbe getLivenessProbe()
public void setLivenessProbe(LivenessOrReadinessProbe LivenessProbe)
LivenessProbe
- 存活探针
注意:此字段可能返回 null,表示取不到有效值。public LivenessOrReadinessProbe getReadinessProbe()
public void setReadinessProbe(LivenessOrReadinessProbe ReadinessProbe)
ReadinessProbe
- 就绪探针
注意:此字段可能返回 null,表示取不到有效值。public Long getGpuLimit()
public void setGpuLimit(Long GpuLimit)
GpuLimit
- Gpu限制
注意:此字段可能返回 null,表示取不到有效值。public SecurityContext getSecurityContext()
public void setSecurityContext(SecurityContext SecurityContext)
SecurityContext
- 容器的安全上下文
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2024. All rights reserved.