public class PodSpec extends AbstractModel
Constructor and Description |
---|
PodSpec() |
PodSpec(PodSpec 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 |
---|---|
Long |
getCpu()
Get Number of CPU cores.
|
String |
getCpuType()
Get EKS cluster - CPU type.
|
String[] |
getDataVolumes()
Get Mount point of resources for the host.
|
DynamicPodSpec |
getDynamicPodSpec()
Get Floating specification
Note: this field may return `null`, indicating that no valid values can be obtained.
|
Long |
getIsDynamicSpec()
Get Whether floating specification is used.
|
Long |
getMemory()
Get Memory size in GB.
|
String |
getNodeType()
Get Purpose of the resource, i.e., node type, which currently can only be "TASK".
|
PodVolume[] |
getPodVolumes()
Get Pod node data directory mounting information.
|
String |
getResourceProviderIdentifier()
Get Identifier of external resource provider, such as "cls-a1cd23fa".
|
String |
getResourceProviderType()
Get Type of external resource provider, such as "tke".
|
void |
setCpu(Long Cpu)
Set Number of CPU cores.
|
void |
setCpuType(String CpuType)
Set EKS cluster - CPU type.
|
void |
setDataVolumes(String[] DataVolumes)
Set Mount point of resources for the host.
|
void |
setDynamicPodSpec(DynamicPodSpec DynamicPodSpec)
Set Floating specification
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setIsDynamicSpec(Long IsDynamicSpec)
Set Whether floating specification is used.
|
void |
setMemory(Long Memory)
Set Memory size in GB.
|
void |
setNodeType(String NodeType)
Set Purpose of the resource, i.e., node type, which currently can only be "TASK".
|
void |
setPodVolumes(PodVolume[] PodVolumes)
Set Pod node data directory mounting information.
|
void |
setResourceProviderIdentifier(String ResourceProviderIdentifier)
Set Identifier of external resource provider, such as "cls-a1cd23fa".
|
void |
setResourceProviderType(String ResourceProviderType)
Set Type of external resource provider, such as "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 PodSpec()
public PodSpec(PodSpec source)
public String getResourceProviderIdentifier()
public void setResourceProviderIdentifier(String ResourceProviderIdentifier)
ResourceProviderIdentifier
- Identifier of external resource provider, such as "cls-a1cd23fa".public String getResourceProviderType()
public void setResourceProviderType(String ResourceProviderType)
ResourceProviderType
- Type of external resource provider, such as "tke". Currently, only "tke" is supported.public String getNodeType()
public void setNodeType(String NodeType)
NodeType
- Purpose of the resource, i.e., node type, which currently can only be "TASK".public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Number of CPU cores.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory size in GB.public String[] getDataVolumes()
public void setDataVolumes(String[] DataVolumes)
DataVolumes
- Mount point of resources for the host. The specified mount point corresponds to the host path and is used as the data storage directory in the pod. (This parameter has been disused)public String getCpuType()
public void setCpuType(String CpuType)
CpuType
- EKS cluster - CPU type. Valid values: "intel", "amd"public PodVolume[] getPodVolumes()
public void setPodVolumes(PodVolume[] PodVolumes)
PodVolumes
- Pod node data directory mounting information.public Long getIsDynamicSpec()
public void setIsDynamicSpec(Long IsDynamicSpec)
IsDynamicSpec
- Whether floating specification is used. `1`: yes; `0`: nopublic DynamicPodSpec getDynamicPodSpec()
public void setDynamicPodSpec(DynamicPodSpec DynamicPodSpec)
DynamicPodSpec
- Floating specification
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.