public class CreateServiceRequest extends AbstractModel
Constructor and Description |
---|
CreateServiceRequest() |
CreateServiceRequest(CreateServiceRequest 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 |
getAuthentication()
Get 默认为空,表示不需要鉴权,TOKEN 表示选择 Token 鉴权方式
|
String |
getCluster()
Get 集群,不填则使用默认集群
|
Long |
getCpu()
Get 处理器配置, 单位为1/1000核;范围[100, 256000]
|
String |
getDescription()
Get 备注
|
Long |
getGpu()
Get GPU算力配置,单位为1/1000 卡,范围 [0, 256000]
|
Long |
getGpuMemory()
Get 显存配置, 单位为1M,范围 [0, 256000]
|
String |
getGpuType()
Get GPU类型
|
String |
getLogTopicId()
Get Cls日志主题ID
|
Long |
getMemory()
Get 内存配置, 单位为1M;范围[100, 256000]
|
String |
getName()
Get 服务名称
|
String |
getResourceGroupId()
Get 部署要使用的资源组Id,默认为共享资源组
|
String |
getScaleMode()
Get 扩缩容方式,支持AUTO, MANUAL,分别表示自动扩缩容和手动扩缩容
|
Scaler |
getScaler()
Get 扩缩容配置
|
String |
getServiceConfigId()
Get 服务配置Id
|
void |
setAuthentication(String Authentication)
Set 默认为空,表示不需要鉴权,TOKEN 表示选择 Token 鉴权方式
|
void |
setCluster(String Cluster)
Set 集群,不填则使用默认集群
|
void |
setCpu(Long Cpu)
Set 处理器配置, 单位为1/1000核;范围[100, 256000]
|
void |
setDescription(String Description)
Set 备注
|
void |
setGpu(Long Gpu)
Set GPU算力配置,单位为1/1000 卡,范围 [0, 256000]
|
void |
setGpuMemory(Long GpuMemory)
Set 显存配置, 单位为1M,范围 [0, 256000]
|
void |
setGpuType(String GpuType)
Set GPU类型
|
void |
setLogTopicId(String LogTopicId)
Set Cls日志主题ID
|
void |
setMemory(Long Memory)
Set 内存配置, 单位为1M;范围[100, 256000]
|
void |
setName(String Name)
Set 服务名称
|
void |
setResourceGroupId(String ResourceGroupId)
Set 部署要使用的资源组Id,默认为共享资源组
|
void |
setScaleMode(String ScaleMode)
Set 扩缩容方式,支持AUTO, MANUAL,分别表示自动扩缩容和手动扩缩容
|
void |
setScaler(Scaler Scaler)
Set 扩缩容配置
|
void |
setServiceConfigId(String ServiceConfigId)
Set 服务配置Id
|
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 CreateServiceRequest()
public CreateServiceRequest(CreateServiceRequest source)
public Scaler getScaler()
public void setScaler(Scaler Scaler)
Scaler
- 扩缩容配置public String getServiceConfigId()
public void setServiceConfigId(String ServiceConfigId)
ServiceConfigId
- 服务配置Idpublic String getName()
public void setName(String Name)
Name
- 服务名称public String getScaleMode()
public void setScaleMode(String ScaleMode)
ScaleMode
- 扩缩容方式,支持AUTO, MANUAL,分别表示自动扩缩容和手动扩缩容public String getResourceGroupId()
public void setResourceGroupId(String ResourceGroupId)
ResourceGroupId
- 部署要使用的资源组Id,默认为共享资源组public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- 处理器配置, 单位为1/1000核;范围[100, 256000]public Long getMemory()
public void setMemory(Long Memory)
Memory
- 内存配置, 单位为1M;范围[100, 256000]public String getCluster()
public void setCluster(String Cluster)
Cluster
- 集群,不填则使用默认集群public String getAuthentication()
public void setAuthentication(String Authentication)
Authentication
- 默认为空,表示不需要鉴权,TOKEN 表示选择 Token 鉴权方式public Long getGpu()
public void setGpu(Long Gpu)
Gpu
- GPU算力配置,单位为1/1000 卡,范围 [0, 256000]public Long getGpuMemory()
public void setGpuMemory(Long GpuMemory)
GpuMemory
- 显存配置, 单位为1M,范围 [0, 256000]public String getDescription()
public void setDescription(String Description)
Description
- 备注public String getGpuType()
public void setGpuType(String GpuType)
GpuType
- GPU类型public String getLogTopicId()
public void setLogTopicId(String LogTopicId)
LogTopicId
- Cls日志主题IDCopyright © 2021. All rights reserved.