public class ResourceInfo extends AbstractModel
header, skipSign| Constructor and Description |
|---|
ResourceInfo() |
ResourceInfo(ResourceInfo 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 Processor resource, in 1/1000 cores.Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getGpu()
Get Number of GPU card resources, in 0.01 units of GpuType.Gpu=100 indicates the use of "1" GPU card.
|
String |
getGpuType()
Get GPU card model.
|
Long |
getMemory()
Get Memory resource, in MB.Note: This field may return null, indicating that no valid values can be obtained.
|
Long |
getRealGpu()
Get It is not required for creation or update operations.
|
GpuDetail[] |
getRealGpuDetailSet()
Get It is not required for creation or update operations.
|
void |
setCpu(Long Cpu)
Set Processor resource, in 1/1000 cores.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setGpu(Long Gpu)
Set Number of GPU card resources, in 0.01 units of GpuType.Gpu=100 indicates the use of "1" GPU card.
|
void |
setGpuType(String GpuType)
Set GPU card model.
|
void |
setMemory(Long Memory)
Set Memory resource, in MB.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setRealGpu(Long RealGpu)
Set It is not required for creation or update operations.
|
void |
setRealGpuDetailSet(GpuDetail[] RealGpuDetailSet)
Set It is not required for creation or update operations.
|
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, toJsonStringpublic ResourceInfo()
public ResourceInfo(ResourceInfo source)
public Long getCpu()
public void setCpu(Long Cpu)
Cpu - Processor resource, in 1/1000 cores.Note: This field may return null, indicating that no valid values can be obtained.public Long getMemory()
public void setMemory(Long Memory)
Memory - Memory resource, in MB.Note: This field may return null, indicating that no valid values can be obtained.public Long getGpu()
public void setGpu(Long Gpu)
Gpu - Number of GPU card resources, in 0.01 units of GpuType.Gpu=100 indicates the use of "1" GPU card. However, this "1" card could refer to a virtualized 1/4 card or a full physical card, depending on the instance type.Example 1: If the instance type includes 1 virtual GPU card, and each virtual GPU card corresponds to 1/4 of a physical T4 card, then GpuType=T4, Gpu=100, and RealGpu=25.Example 2: If the instance type includes 4 full GPU cards, and each card corresponds to 1 physical T4 card, then GpuType=T4, Gpu=400, and RealGpu=400.Note: This field may return null, indicating that no valid values can be obtained.public String getGpuType()
public void setGpuType(String GpuType)
GpuType - GPU card model. Valid values: T4 and V100. It only displays the current GPU card model. If multiple types of cards are used simultaneously, see the value of RealGpuDetailSet.Note: This field may return null, indicating that no valid values can be obtained.public Long getRealGpu()
public void setRealGpu(Long RealGpu)
RealGpu - It is not required for creation or update operations. This field is used for display only.The actual GPU card resources for postpaid instances using fractional GPU cards. This value represents the total number of actual physical GPU cards consumed.RealGpu=100 indicates the consumption of 1 GPU card. Depending on the actual instance type, this may represent: 4 instances each using a 1/4 card, 2 instances each using a 1/2 card, or 1 instance using a full card.public GpuDetail[] getRealGpuDetailSet()
public void setRealGpuDetailSet(GpuDetail[] RealGpuDetailSet)
RealGpuDetailSet - It is not required for creation or update operations. This field is used for display only. It involves detailed GPU usage information.Copyright © 2025. All rights reserved.