public class ConfigModifyInfoV2 extends AbstractModel
header, skipSign
Constructor and Description |
---|
ConfigModifyInfoV2() |
ConfigModifyInfoV2(ConfigModifyInfoV2 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 |
---|---|
ItemSeq |
getBasicParams()
Get Basic configuration.
|
ConfigSetInfo[] |
getConfigSetParams()
Get Configuration set information.
|
String[] |
getDeleteLables()
Get This parameter is specific for capacity scheduling and is valid only when `OpType` is set to `6`.
|
String |
getMyId()
Get Edit or delete operations: Require passing "myId of the selected queue".
|
String |
getName()
Get Queue name.
|
Long |
getOpType()
Get Operation type.
|
String |
getParentId()
Get Create root queue: Pass "myId of root"; Create sub-queue: Pass "myId of the selected queue"; Clone queue: Pass "parentId of the selected queue".
|
void |
setBasicParams(ItemSeq BasicParams)
Set Basic configuration.
|
void |
setConfigSetParams(ConfigSetInfo[] ConfigSetParams)
Set Configuration set information.
|
void |
setDeleteLables(String[] DeleteLables)
Set This parameter is specific for capacity scheduling and is valid only when `OpType` is set to `6`.
|
void |
setMyId(String MyId)
Set Edit or delete operations: Require passing "myId of the selected queue".
|
void |
setName(String Name)
Set Queue name.
|
void |
setOpType(Long OpType)
Set Operation type.
|
void |
setParentId(String ParentId)
Set Create root queue: Pass "myId of root"; Create sub-queue: Pass "myId of the selected queue"; Clone queue: Pass "parentId of the selected queue".
|
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 ConfigModifyInfoV2()
public ConfigModifyInfoV2(ConfigModifyInfoV2 source)
public Long getOpType()
public void setOpType(Long OpType)
OpType
- Operation type. Valid values:
- 0: create a queue.
- 1: edit - full overwrite.
- 2: create a sub-queue.
- 3: delete.
- 4: clone. It is the same as sub-queue creation. Especially, for `fair`, a sub-queue can be copied to a new queue.
- 6: edit - incremental update.public String getName()
public void setName(String Name)
Name
- Queue name. It cannot be modified.public String getParentId()
public void setParentId(String ParentId)
ParentId
- Create root queue: Pass "myId of root"; Create sub-queue: Pass "myId of the selected queue"; Clone queue: Pass "parentId of the selected queue".public String getMyId()
public void setMyId(String MyId)
MyId
- Edit or delete operations: Require passing "myId of the selected queue". Passing is required for cloning only when the scheduler is `fair` in order to copy a sub-queue to a new queue.public ItemSeq getBasicParams()
public void setBasicParams(ItemSeq BasicParams)
BasicParams
- Basic configuration. The value of key is consistent with the field returned by **DescribeYarnQueue**.###### Fair scheduler
Values of key are as follows:
- type: parent queue. Value: **parent** or **null**.
- aclSubmitApps: submission ACL. Value: **JSON string of the AclForYarnQueue type** or **null**.
- aclAdministerApps: administration ACL. Value: **JSON string of the AclForYarnQueue type** or **null**.
- minSharePreemptionTimeout: timeout of minimum share before preemption. Value: **numeric string** or **null**.
- fairSharePreemptionTimeout: timeout of fair share before preemption. Value: **numeric string** or **null**.
- fairSharePreemptionThreshold: fair share preemption threshold. Value: **numeric string** or **null**. Numeric string range: (0,1].
- allowPreemptionFrom: preemption mode. Value: **Boolean string** or **null**.
- schedulingPolicy: scheduling policy. Value: **drf**, **fair**, **fifo**, or **null**.
```
type AclForYarnQueue struct {
User *string `json:"user"` // Username
Group *string `json:"group"`// Group name
}
```
###### Capacity scheduler
Values of key are as follows:
- state: queue status. Value: **STOPPED** or **RUNNING**.
- default-node-label-expression: default tag expression. Value: **tag** or **null**.
- acl_submit_applications: submission ACL. Value: **JSON string of the AclForYarnQueue type** or **null**.
- acl_administer_queue: administration ACL. Value: **JSON string of the AclForYarnQueue type** or **null**.
- maximum-allocation-mb: maximum memory allocated to each container. Value: **numeric string** or **null**.
- maximum-allocation-vcores: maximum number of virtual cores allocated to each container. Value: **numeric string** or **null**.
```
type AclForYarnQueue struct {
User *string `json:"user"` // Username
Group *string `json:"group"`// Group name
}
```
Note: This field may return null, indicating that no valid values can be obtained.public ConfigSetInfo[] getConfigSetParams()
public void setConfigSetParams(ConfigSetInfo[] ConfigSetParams)
ConfigSetParams
- Configuration set information. For the values, see the parameter description of ConfigSetInfo. Configuration set is the representation of the plan mode in the queue, containing different configuration item values for different time periods. The configuration set names of all queues are the same. For a single queue, the tags and parameters in each configuration set are the same, but the parameter values are different.
Note: This field may return null, indicating that no valid values can be obtained.public String[] getDeleteLables()
public void setDeleteLables(String[] DeleteLables)
DeleteLables
- This parameter is specific for capacity scheduling and is valid only when `OpType` is set to `6`. It indicates tags to be deleted from the queue. This parameter has a higher priority than LabelParams in ConfigSetParams.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.