public class PodSpec extends AbstractModel
Constructor and Description |
---|
PodSpec() |
Modifier and Type | Method and Description |
---|---|
Long |
getCpu()
Get CPU核数。
|
String[] |
getDataVolumes()
Get 资源对宿主机的挂载点,指定的挂载点对应了宿主机的路径,该挂载点在Pod中作为数据存储目录使用。
|
Long |
getMemory()
Get 内存大小,单位为GB。
|
String |
getNodeType()
Get 资源的用途,即节点类型,当前仅支持"TASK"。
|
String |
getResourceProviderIdentifier()
Get 外部资源提供者的标识符,例如"cls-a1cd23fa"。
|
String |
getResourceProviderType()
Get 外部资源提供者类型,例如"tke",当前仅支持"tke"。
|
void |
setCpu(Long Cpu)
Set CPU核数。
|
void |
setDataVolumes(String[] DataVolumes)
Set 资源对宿主机的挂载点,指定的挂载点对应了宿主机的路径,该挂载点在Pod中作为数据存储目录使用。
|
void |
setMemory(Long Memory)
Set 内存大小,单位为GB。
|
void |
setNodeType(String NodeType)
Set 资源的用途,即节点类型,当前仅支持"TASK"。
|
void |
setResourceProviderIdentifier(String ResourceProviderIdentifier)
Set 外部资源提供者的标识符,例如"cls-a1cd23fa"。
|
void |
setResourceProviderType(String ResourceProviderType)
Set 外部资源提供者类型,例如"tke",当前仅支持"tke"。
|
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 getResourceProviderIdentifier()
public void setResourceProviderIdentifier(String ResourceProviderIdentifier)
ResourceProviderIdentifier
- 外部资源提供者的标识符,例如"cls-a1cd23fa"。public String getResourceProviderType()
public void setResourceProviderType(String ResourceProviderType)
ResourceProviderType
- 外部资源提供者类型,例如"tke",当前仅支持"tke"。public String getNodeType()
public void setNodeType(String NodeType)
NodeType
- 资源的用途,即节点类型,当前仅支持"TASK"。public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- CPU核数。public Long getMemory()
public void setMemory(Long Memory)
Memory
- 内存大小,单位为GB。public String[] getDataVolumes()
public void setDataVolumes(String[] DataVolumes)
DataVolumes
- 资源对宿主机的挂载点,指定的挂载点对应了宿主机的路径,该挂载点在Pod中作为数据存储目录使用。Copyright © 2020. All rights reserved.