public class CreateQuotaRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
allocateStrategy
The allocation strategy for the quota.
|
ClusterSpec |
clusterSpec
The native cluster specification for the quota.
|
String |
description
The description of the quota.
|
List<Label> |
labels
The tags for the quota.
|
ResourceSpec |
min
The minimum resources for the quota.
|
String |
parentQuotaId
The ID of the parent quota.
|
String |
queueStrategy
The queuing strategy for the quota.
|
QuotaConfig |
quotaConfig
Constraints for the
QuotaConfig parameter:
This parameter is ignored if the resource type is ECS or Lingjun. |
String |
quotaName
The name of the quota.
|
List<String> |
resourceGroupIds
The IDs of the dedicated resource groups.
|
String |
resourceType
The resource type of the quota.
|
| 构造器和说明 |
|---|
CreateQuotaRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateQuotaRequest |
build(Map<String,?> map) |
String |
getAllocateStrategy() |
ClusterSpec |
getClusterSpec() |
String |
getDescription() |
List<Label> |
getLabels() |
ResourceSpec |
getMin() |
String |
getParentQuotaId() |
String |
getQueueStrategy() |
QuotaConfig |
getQuotaConfig() |
String |
getQuotaName() |
List<String> |
getResourceGroupIds() |
String |
getResourceType() |
CreateQuotaRequest |
setAllocateStrategy(String allocateStrategy) |
CreateQuotaRequest |
setClusterSpec(ClusterSpec clusterSpec) |
CreateQuotaRequest |
setDescription(String description) |
CreateQuotaRequest |
setLabels(List<Label> labels) |
CreateQuotaRequest |
setMin(ResourceSpec min) |
CreateQuotaRequest |
setParentQuotaId(String parentQuotaId) |
CreateQuotaRequest |
setQueueStrategy(String queueStrategy) |
CreateQuotaRequest |
setQuotaConfig(QuotaConfig quotaConfig) |
CreateQuotaRequest |
setQuotaName(String quotaName) |
CreateQuotaRequest |
setResourceGroupIds(List<String> resourceGroupIds) |
CreateQuotaRequest |
setResourceType(String resourceType) |
@NameInMap(value="AllocateStrategy") public String allocateStrategy
The allocation strategy for the quota. Only ByNodeSpecs is supported.
ByNodeSpecs
@NameInMap(value="ClusterSpec") public ClusterSpec clusterSpec
The native cluster specification for the quota.
@NameInMap(value="Description") public String description
The description of the quota.
example:this is a test quota
@NameInMap(value="Min") public ResourceSpec min
The minimum resources for the quota. You can define this in one of the following ways:
ResourceAmount: Specifies the CPU, memory, and GPU details.
NodeSpecs: Specifies the node specification and the number of nodes.
Constraints:
If this quota allocates resources from a dedicated resource group, you must use the NodeSpecs method.
If this quota allocates resources from a parent quota, both methods are allowed. However, all its child quotas must use the same method.
All GPU specifications within the quota must have the same GPU type.
For quotas with the resource type set to ECS or Lingjun, only the NodeSpecs method can be used.
@NameInMap(value="ParentQuotaId") public String parentQuotaId
The ID of the parent quota.
If you do not specify this parameter, a root quota is created. Resources are allocated from a dedicated resource group.
If you specify this parameter, a child quota is created. Resources are allocated from the nodes that are bound to the root quota.
quota1ci8g793pgm
@NameInMap(value="QueueStrategy") public String queueStrategy
The queuing strategy for the quota. Four strategies are supported:
PaiStrategyIntelligent: The intelligent strategy.
PaiStrategyBalance: The balance strategy.
PaiStrategyRoundRobin: The round-robin strategy.
PaiStrategyStrictFIFO: The FIFO strategy.
PaiStrategyIntelligent
if can be null:true
@NameInMap(value="QuotaConfig") public QuotaConfig quotaConfig
Constraints for the QuotaConfig parameter:
This parameter is ignored if the resource type is ECS or Lingjun.
If the resource type is ACS, the specified VPC and ACS configurations are applied.
@NameInMap(value="QuotaName") public String quotaName
The name of the quota.
example:test-quota
@NameInMap(value="ResourceGroupIds") public List<String> resourceGroupIds
The IDs of the dedicated resource groups. The following constraints apply:
Only a root quota, for which ParentQuotaId is empty, can allocate nodes from a resource group.
The VPC configurations of the specified resource groups must be the same.
@NameInMap(value="ResourceType") public String resourceType
The resource type of the quota. Valid values: Lingjun, ECS, and ACS. Default value: ECS.
example:ECS
public static CreateQuotaRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateQuotaRequest setAllocateStrategy(String allocateStrategy)
public String getAllocateStrategy()
public CreateQuotaRequest setClusterSpec(ClusterSpec clusterSpec)
public ClusterSpec getClusterSpec()
public CreateQuotaRequest setDescription(String description)
public String getDescription()
public CreateQuotaRequest setLabels(List<Label> labels)
public CreateQuotaRequest setMin(ResourceSpec min)
public ResourceSpec getMin()
public CreateQuotaRequest setParentQuotaId(String parentQuotaId)
public String getParentQuotaId()
public CreateQuotaRequest setQueueStrategy(String queueStrategy)
public String getQueueStrategy()
public CreateQuotaRequest setQuotaConfig(QuotaConfig quotaConfig)
public QuotaConfig getQuotaConfig()
public CreateQuotaRequest setQuotaName(String quotaName)
public String getQuotaName()
public CreateQuotaRequest setResourceGroupIds(List<String> resourceGroupIds)
public CreateQuotaRequest setResourceType(String resourceType)
public String getResourceType()
Copyright © 2026. All rights reserved.