public class PodSpec extends AbstractModel
header, skipSign
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 CPUs
|
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, which means the node type and can only be "TASK".
|
String |
getPodName()
Get pod name
|
PodVolume[] |
getPodVolumes()
Get Data directory mounting information of the pod node.
|
String |
getResourceProviderIdentifier()
Get Identifier of external resource provider, such as "cls-a1cd23fa".
|
String |
getResourceProviderType()
Get Type of external resource provider, such as "tke".
|
String |
getSubnetId()
Get Unique ID of a VPC subnet.
|
String |
getVpcId()
Get Unique ID of VPC network.
|
void |
setCpu(Long Cpu)
Set Number of CPUs
|
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, which means the node type and can only be "TASK".
|
void |
setPodName(String PodName)
Set pod name
|
void |
setPodVolumes(PodVolume[] PodVolumes)
Set Data directory mounting information of the pod node.
|
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 |
setSubnetId(String SubnetId)
Set Unique ID of a VPC subnet.
|
void |
setVpcId(String VpcId)
Set Unique ID of VPC network.
|
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 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, which means the node type and can only be "TASK".public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- Number of CPUspublic 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. A 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` and `amd`.public PodVolume[] getPodVolumes()
public void setPodVolumes(PodVolume[] PodVolumes)
PodVolumes
- Data directory mounting information of the pod node.public Long getIsDynamicSpec()
public void setIsDynamicSpec(Long IsDynamicSpec)
IsDynamicSpec
- Whether floating specification is used. `1`: Yes; `0`: No.public DynamicPodSpec getDynamicPodSpec()
public void setDynamicPodSpec(DynamicPodSpec DynamicPodSpec)
DynamicPodSpec
- Floating specification
Note: This field may return null, indicating that no valid values can be obtained.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- Unique ID of VPC network.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- Unique ID of a VPC subnet.public String getPodName()
public void setPodName(String PodName)
PodName
- pod nameCopyright © 2025. All rights reserved.