tencentcloud-sdk-nodejs 4.0.932 → 4.0.933
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +63 -0
- package/SERVICE_CHANGELOG.md +72 -19
- package/package.json +1 -1
- package/products.md +11 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cfw/v20190904/cfw_client.ts +5 -19
- package/src/services/cfw/v20190904/cfw_models.ts +59 -74
- package/src/services/cwp/v20180228/cwp_models.ts +1 -1
- package/src/services/emr/v20190103/emr_client.ts +86 -34
- package/src/services/emr/v20190103/emr_models.ts +727 -361
- package/src/services/ess/v20201111/ess_client.ts +15 -3
- package/src/services/ess/v20201111/ess_models.ts +42 -48
- package/src/services/gme/v20180711/gme_models.ts +7 -7
- package/src/services/teo/v20220901/teo_models.ts +6 -4
- package/src/services/trocket/v20230308/trocket_models.ts +4 -0
- package/src/services/vclm/v20240523/vclm_client.ts +54 -2
- package/src/services/vclm/v20240523/vclm_models.ts +17 -4
- package/src/services/vtc/v20240223/vtc_client.ts +54 -2
- package/src/services/vtc/v20240223/vtc_models.ts +18 -4
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +1 -7
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +0 -8
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +59 -72
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +1 -1
- package/tencentcloud/services/emr/v20190103/emr_client.d.ts +28 -12
- package/tencentcloud/services/emr/v20190103/emr_client.js +38 -14
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +712 -358
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +15 -3
- package/tencentcloud/services/ess/v20201111/ess_client.js +15 -3
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +42 -48
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +7 -7
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +6 -4
- package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +4 -0
- package/tencentcloud/services/vclm/v20240523/vclm_client.d.ts +53 -1
- package/tencentcloud/services/vclm/v20240523/vclm_client.js +53 -1
- package/tencentcloud/services/vclm/v20240523/vclm_models.d.ts +17 -4
- package/tencentcloud/services/vtc/v20240223/vtc_client.d.ts +53 -1
- package/tencentcloud/services/vtc/v20240223/vtc_client.js +53 -1
- package/tencentcloud/services/vtc/v20240223/vtc_models.d.ts +18 -4
- package/test/cfw.v20190904.test.js +0 -10
- package/test/emr.v20190103.test.js +46 -6
|
@@ -95,6 +95,21 @@ POSTPAID_BY_HOUR 按量计费,默认方式。
|
|
|
95
95
|
RemoteTcpDefaultPort?: boolean
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
/**
|
|
99
|
+
* 用于创建集群价格清单 不同可用区下价格详情
|
|
100
|
+
*/
|
|
101
|
+
export interface ZoneDetailPriceResult {
|
|
102
|
+
/**
|
|
103
|
+
* 可用区Id
|
|
104
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
105
|
+
*/
|
|
106
|
+
ZoneId: string
|
|
107
|
+
/**
|
|
108
|
+
* 不同节点的价格详情
|
|
109
|
+
*/
|
|
110
|
+
NodeDetailPrice: Array<NodeDetailPriceResult>
|
|
111
|
+
}
|
|
112
|
+
|
|
98
113
|
/**
|
|
99
114
|
* Pod相关信息
|
|
100
115
|
*/
|
|
@@ -434,24 +449,41 @@ export interface ImpalaQuery {
|
|
|
434
449
|
}
|
|
435
450
|
|
|
436
451
|
/**
|
|
437
|
-
*
|
|
452
|
+
* DescribeHiveQueries请求参数结构体
|
|
438
453
|
*/
|
|
439
|
-
export interface
|
|
454
|
+
export interface DescribeHiveQueriesRequest {
|
|
440
455
|
/**
|
|
441
|
-
*
|
|
442
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
456
|
+
* 集群ID
|
|
443
457
|
*/
|
|
444
|
-
|
|
458
|
+
InstanceId: string
|
|
445
459
|
/**
|
|
446
|
-
*
|
|
447
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
460
|
+
* 起始时间秒
|
|
448
461
|
*/
|
|
449
|
-
|
|
462
|
+
StartTime: number
|
|
450
463
|
/**
|
|
451
|
-
*
|
|
452
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
464
|
+
* 结束时间秒,EndTime-StartTime不得超过1天秒数86400
|
|
453
465
|
*/
|
|
454
|
-
|
|
466
|
+
EndTime: number
|
|
467
|
+
/**
|
|
468
|
+
* 分页起始偏移,从0开始
|
|
469
|
+
*/
|
|
470
|
+
Offset: number
|
|
471
|
+
/**
|
|
472
|
+
* 分页大小,合法范围[1,100]
|
|
473
|
+
*/
|
|
474
|
+
Limit: number
|
|
475
|
+
/**
|
|
476
|
+
* 执行状态,ERROR等
|
|
477
|
+
*/
|
|
478
|
+
State?: Array<string>
|
|
479
|
+
/**
|
|
480
|
+
* 结束时间大于的时间点
|
|
481
|
+
*/
|
|
482
|
+
EndTimeGte?: number
|
|
483
|
+
/**
|
|
484
|
+
* 结束时间小于时间点
|
|
485
|
+
*/
|
|
486
|
+
EndTimeLte?: number
|
|
455
487
|
}
|
|
456
488
|
|
|
457
489
|
/**
|
|
@@ -711,6 +743,64 @@ export interface Step {
|
|
|
711
743
|
User?: string
|
|
712
744
|
}
|
|
713
745
|
|
|
746
|
+
/**
|
|
747
|
+
* 预执行脚本配置
|
|
748
|
+
*/
|
|
749
|
+
export interface PreExecuteFileSettings {
|
|
750
|
+
/**
|
|
751
|
+
* 脚本在COS上路径,已废弃
|
|
752
|
+
*/
|
|
753
|
+
Path?: string
|
|
754
|
+
/**
|
|
755
|
+
* 执行脚本参数
|
|
756
|
+
*/
|
|
757
|
+
Args?: Array<string>
|
|
758
|
+
/**
|
|
759
|
+
* COS的Bucket名称,已废弃
|
|
760
|
+
*/
|
|
761
|
+
Bucket?: string
|
|
762
|
+
/**
|
|
763
|
+
* COS的Region名称,已废弃
|
|
764
|
+
*/
|
|
765
|
+
Region?: string
|
|
766
|
+
/**
|
|
767
|
+
* COS的Domain数据,已废弃
|
|
768
|
+
*/
|
|
769
|
+
Domain?: string
|
|
770
|
+
/**
|
|
771
|
+
* 执行顺序
|
|
772
|
+
*/
|
|
773
|
+
RunOrder?: number
|
|
774
|
+
/**
|
|
775
|
+
* resourceAfter 或 clusterAfter
|
|
776
|
+
*/
|
|
777
|
+
WhenRun?: string
|
|
778
|
+
/**
|
|
779
|
+
* 脚本文件名,已废弃
|
|
780
|
+
*/
|
|
781
|
+
CosFileName?: string
|
|
782
|
+
/**
|
|
783
|
+
* 脚本的cos地址
|
|
784
|
+
*/
|
|
785
|
+
CosFileURI?: string
|
|
786
|
+
/**
|
|
787
|
+
* cos的SecretId
|
|
788
|
+
*/
|
|
789
|
+
CosSecretId?: string
|
|
790
|
+
/**
|
|
791
|
+
* Cos的SecretKey
|
|
792
|
+
*/
|
|
793
|
+
CosSecretKey?: string
|
|
794
|
+
/**
|
|
795
|
+
* cos的appid,已废弃
|
|
796
|
+
*/
|
|
797
|
+
AppId?: string
|
|
798
|
+
/**
|
|
799
|
+
* 备注
|
|
800
|
+
*/
|
|
801
|
+
Remark?: string
|
|
802
|
+
}
|
|
803
|
+
|
|
714
804
|
/**
|
|
715
805
|
* 键值对,主要用来做Filter
|
|
716
806
|
*/
|
|
@@ -1613,18 +1703,21 @@ export interface ScaleOutInstanceRequest {
|
|
|
1613
1703
|
}
|
|
1614
1704
|
|
|
1615
1705
|
/**
|
|
1616
|
-
*
|
|
1706
|
+
* ResetYarnConfig请求参数结构体
|
|
1617
1707
|
*/
|
|
1618
|
-
export interface
|
|
1708
|
+
export interface ResetYarnConfigRequest {
|
|
1619
1709
|
/**
|
|
1620
|
-
*
|
|
1621
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1710
|
+
* emr集群的英文id
|
|
1622
1711
|
*/
|
|
1623
|
-
|
|
1712
|
+
InstanceId: string
|
|
1624
1713
|
/**
|
|
1625
|
-
*
|
|
1714
|
+
* 要重置的配置别名,可选值:
|
|
1715
|
+
|
|
1716
|
+
- capacityLabel:重置标签管理的配置
|
|
1717
|
+
- fair:重置公平调度的配置
|
|
1718
|
+
- capacity:重置容量调度的配置
|
|
1626
1719
|
*/
|
|
1627
|
-
|
|
1720
|
+
Key?: string
|
|
1628
1721
|
}
|
|
1629
1722
|
|
|
1630
1723
|
/**
|
|
@@ -1747,17 +1840,17 @@ export interface ModifyResourceScheduleConfigResponse {
|
|
|
1747
1840
|
/**
|
|
1748
1841
|
* true为草稿,表示还没有刷新资源池
|
|
1749
1842
|
*/
|
|
1750
|
-
IsDraft
|
|
1843
|
+
IsDraft?: boolean
|
|
1751
1844
|
/**
|
|
1752
1845
|
* 校验错误信息,如果不为空,则说明校验失败,配置没有成功
|
|
1753
1846
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1754
1847
|
*/
|
|
1755
|
-
ErrorMsg
|
|
1848
|
+
ErrorMsg?: string
|
|
1756
1849
|
/**
|
|
1757
1850
|
* 返回数据
|
|
1758
1851
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1759
1852
|
*/
|
|
1760
|
-
Data
|
|
1853
|
+
Data?: string
|
|
1761
1854
|
/**
|
|
1762
1855
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1763
1856
|
*/
|
|
@@ -2207,6 +2300,116 @@ export interface AddUsersForUserManagerResponse {
|
|
|
2207
2300
|
RequestId?: string
|
|
2208
2301
|
}
|
|
2209
2302
|
|
|
2303
|
+
/**
|
|
2304
|
+
* DescribeYarnQueue返回参数结构体
|
|
2305
|
+
*/
|
|
2306
|
+
export interface DescribeYarnQueueResponse {
|
|
2307
|
+
/**
|
|
2308
|
+
* 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
|
|
2309
|
+
|
|
2310
|
+
```
|
|
2311
|
+
Name string `json:"name"` //队列名称
|
|
2312
|
+
```
|
|
2313
|
+
- `Name`:字段名
|
|
2314
|
+
- `string`:字段类型
|
|
2315
|
+
- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
|
|
2316
|
+
- `//`:后面的注释内容对应页面上看到的名称
|
|
2317
|
+
|
|
2318
|
+
字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
|
|
2319
|
+
|
|
2320
|
+
- 公平调度器
|
|
2321
|
+
|
|
2322
|
+
```
|
|
2323
|
+
type QueueWithConfigSetForFairScheduler struct {
|
|
2324
|
+
Name string `json:"name"` //队列名称
|
|
2325
|
+
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
|
2326
|
+
ParentId string `json:"parentId"` // 父队列Id
|
|
2327
|
+
Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
|
|
2328
|
+
AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
|
|
2329
|
+
AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
|
|
2330
|
+
MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
|
|
2331
|
+
FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
|
|
2332
|
+
FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
|
|
2333
|
+
AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
|
|
2334
|
+
SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
|
|
2335
|
+
IsDefault *bool `json:"isDefault"` // 是否是root.default队列
|
|
2336
|
+
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
|
2337
|
+
ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
|
|
2338
|
+
Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
type AclForYarnQueue struct {
|
|
2342
|
+
User *string `json:"user"` //用户名
|
|
2343
|
+
Group *string `json:"group"`//组名
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
type ConfigSetForFairScheduler struct {
|
|
2347
|
+
Name string `json:"name"` // 配置集名称
|
|
2348
|
+
MinResources *YarnResource `json:"minResources"` // 最小资源量
|
|
2349
|
+
MaxResources *YarnResource `json:"maxResources"` // 最大资源量
|
|
2350
|
+
MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
|
|
2351
|
+
MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
|
|
2352
|
+
Weight *float32 `json:"weight"` // 权重
|
|
2353
|
+
MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
type YarnResource struct {
|
|
2357
|
+
Vcores *int `json:"vcores"`
|
|
2358
|
+
Memory *int `json:"memory"`
|
|
2359
|
+
Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
|
|
2360
|
+
}
|
|
2361
|
+
```
|
|
2362
|
+
|
|
2363
|
+
- 容量调度器
|
|
2364
|
+
|
|
2365
|
+
```
|
|
2366
|
+
type QueueForCapacitySchedulerV3 struct {
|
|
2367
|
+
Name string `json:"name"` // 队列名称
|
|
2368
|
+
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
|
2369
|
+
ParentId string `json:"parentId"` // 父队列Id
|
|
2370
|
+
Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
|
|
2371
|
+
State *string `json:"state"` // 资源池状态
|
|
2372
|
+
DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
|
|
2373
|
+
AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
|
|
2374
|
+
AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
|
|
2375
|
+
MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
|
|
2376
|
+
MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
|
|
2377
|
+
IsDefault *bool `json:"isDefault"`// 是否是root.default队列
|
|
2378
|
+
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
|
2379
|
+
Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
|
|
2380
|
+
}
|
|
2381
|
+
type ConfigForCapacityV3 struct {
|
|
2382
|
+
Name string `json:"configName"` // 配置集名称
|
|
2383
|
+
Labels []CapacityLabel `json:"labels"` // 标签信息
|
|
2384
|
+
MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
|
|
2385
|
+
UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
|
|
2386
|
+
MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
|
|
2387
|
+
MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
|
|
2388
|
+
DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
|
|
2389
|
+
}
|
|
2390
|
+
type CapacityLabel struct {
|
|
2391
|
+
Name string `json:"labelName"`
|
|
2392
|
+
Capacity *float32 `json:"capacity"` // 容量
|
|
2393
|
+
MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
type AclForYarnQueue struct {
|
|
2397
|
+
User *string `json:"user"` //用户名
|
|
2398
|
+
Group *string `json:"group"`//组名
|
|
2399
|
+
}
|
|
2400
|
+
```
|
|
2401
|
+
*/
|
|
2402
|
+
Queue?: string
|
|
2403
|
+
/**
|
|
2404
|
+
* 版本
|
|
2405
|
+
*/
|
|
2406
|
+
Version?: string
|
|
2407
|
+
/**
|
|
2408
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2409
|
+
*/
|
|
2410
|
+
RequestId?: string
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2210
2413
|
/**
|
|
2211
2414
|
* 集群节点拓扑信息
|
|
2212
2415
|
*/
|
|
@@ -2428,41 +2631,21 @@ export interface VPCSettings {
|
|
|
2428
2631
|
}
|
|
2429
2632
|
|
|
2430
2633
|
/**
|
|
2431
|
-
*
|
|
2634
|
+
* DescribeInstancesList返回参数结构体
|
|
2432
2635
|
*/
|
|
2433
|
-
export interface
|
|
2434
|
-
/**
|
|
2435
|
-
* 集群ID
|
|
2436
|
-
*/
|
|
2437
|
-
InstanceId: string
|
|
2438
|
-
/**
|
|
2439
|
-
* 起始时间秒
|
|
2440
|
-
*/
|
|
2441
|
-
StartTime: number
|
|
2442
|
-
/**
|
|
2443
|
-
* 结束时间秒,EndTime-StartTime不得超过1天秒数86400
|
|
2444
|
-
*/
|
|
2445
|
-
EndTime: number
|
|
2446
|
-
/**
|
|
2447
|
-
* 分页起始偏移,从0开始
|
|
2448
|
-
*/
|
|
2449
|
-
Offset: number
|
|
2450
|
-
/**
|
|
2451
|
-
* 分页大小,合法范围[1,100]
|
|
2452
|
-
*/
|
|
2453
|
-
Limit: number
|
|
2636
|
+
export interface DescribeInstancesListResponse {
|
|
2454
2637
|
/**
|
|
2455
|
-
*
|
|
2638
|
+
* 符合条件的实例总数。
|
|
2456
2639
|
*/
|
|
2457
|
-
|
|
2640
|
+
TotalCnt?: number
|
|
2458
2641
|
/**
|
|
2459
|
-
*
|
|
2642
|
+
* 集群实例列表
|
|
2460
2643
|
*/
|
|
2461
|
-
|
|
2644
|
+
InstancesList?: Array<EmrListInstance>
|
|
2462
2645
|
/**
|
|
2463
|
-
*
|
|
2646
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2464
2647
|
*/
|
|
2465
|
-
|
|
2648
|
+
RequestId?: string
|
|
2466
2649
|
}
|
|
2467
2650
|
|
|
2468
2651
|
/**
|
|
@@ -3522,46 +3705,52 @@ export interface DescribeUsersForUserManagerRequest {
|
|
|
3522
3705
|
}
|
|
3523
3706
|
|
|
3524
3707
|
/**
|
|
3525
|
-
*
|
|
3708
|
+
* 资源调度-配置集信息
|
|
3526
3709
|
*/
|
|
3527
|
-
export interface
|
|
3528
|
-
/**
|
|
3529
|
-
* 节点资源ID
|
|
3530
|
-
*/
|
|
3531
|
-
EmrResourceId?: string
|
|
3532
|
-
/**
|
|
3533
|
-
* 节点类型。0:common节点;1:master节点
|
|
3534
|
-
;2:core节点;3:task节点
|
|
3535
|
-
*/
|
|
3536
|
-
Flag?: number
|
|
3537
|
-
/**
|
|
3538
|
-
* 内网IP
|
|
3539
|
-
*/
|
|
3540
|
-
Ip?: string
|
|
3541
|
-
/**
|
|
3542
|
-
* 节点内存描述
|
|
3543
|
-
*/
|
|
3544
|
-
MemDesc?: string
|
|
3545
|
-
/**
|
|
3546
|
-
* 节点核数
|
|
3547
|
-
*/
|
|
3548
|
-
CpuNum?: number
|
|
3549
|
-
/**
|
|
3550
|
-
* 硬盘大小
|
|
3551
|
-
*/
|
|
3552
|
-
DiskSize?: string
|
|
3710
|
+
export interface ConfigSetInfo {
|
|
3553
3711
|
/**
|
|
3554
|
-
*
|
|
3712
|
+
* 配置集名称
|
|
3713
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3555
3714
|
*/
|
|
3556
|
-
|
|
3715
|
+
ConfigSet: string
|
|
3557
3716
|
/**
|
|
3558
|
-
*
|
|
3717
|
+
* 容量调度器会使用,里面设置了标签相关的配置。key的取值与**DescribeYarnQueue**返回的字段一致。
|
|
3718
|
+
key的取值信息如下:
|
|
3719
|
+
- labelName,标签名称,标签管理里的标签。
|
|
3720
|
+
- capacity,容量,取值为**数字字符串**
|
|
3721
|
+
- maximum-capacity,最大容量,取值为**数字字符串**
|
|
3722
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3559
3723
|
*/
|
|
3560
|
-
|
|
3724
|
+
LabelParams?: Array<ItemSeq>
|
|
3561
3725
|
/**
|
|
3562
|
-
*
|
|
3726
|
+
* 设置配置集相关的参数。key的取值与**DescribeYarnQueue**返回的字段一致。
|
|
3727
|
+
###### 公平调度器
|
|
3728
|
+
key的取值信息如下:
|
|
3729
|
+
- minResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
|
3730
|
+
- maxResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
|
3731
|
+
- maxChildResources,能够分配给为未声明子队列的最大资源量,取值为**数字字符串**或**null**
|
|
3732
|
+
- maxRunningApps,最高可同时处于运行的App数量,取值为**数字字符串**或**null**
|
|
3733
|
+
- weight,权重,取值为**数字字符串**或**null**
|
|
3734
|
+
- maxAMShare,App Master最大份额,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
|
3735
|
+
|
|
3736
|
+
```
|
|
3737
|
+
type YarnResource struct {
|
|
3738
|
+
Vcores *int `json:"vcores"`
|
|
3739
|
+
Memory *int `json:"memory"`
|
|
3740
|
+
Type *string `json:"type"` // 取值为`percent`或`null`当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值。只有maxResources、maxChildResources才可以取值为`percent`
|
|
3741
|
+
}
|
|
3742
|
+
```
|
|
3743
|
+
|
|
3744
|
+
###### 容量调度器
|
|
3745
|
+
key的取值信息如下:
|
|
3746
|
+
- minimum-user-limit-percent,用户最小容量,取值为**YarnResource类型的json串**或**null**,其中数字的范围是[0,100]
|
|
3747
|
+
- user-limit-factor,用户资源因子,取值为**YarnResource类型的json串**或**null**
|
|
3748
|
+
- maximum-applications,最大应用数Max-Applications,取值为**数字字符串**或**null**,其中数字为正整数
|
|
3749
|
+
- maximum-am-resource-percent,最大AM比例,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
|
3750
|
+
- default-application-priority,资源池优先级,取值为**数字字符串**或**null**,其中数字为正整数
|
|
3751
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3563
3752
|
*/
|
|
3564
|
-
|
|
3753
|
+
BasicParams?: Array<Item>
|
|
3565
3754
|
}
|
|
3566
3755
|
|
|
3567
3756
|
/**
|
|
@@ -3667,149 +3856,34 @@ export interface RunJobFlowResponse {
|
|
|
3667
3856
|
}
|
|
3668
3857
|
|
|
3669
3858
|
/**
|
|
3670
|
-
*
|
|
3859
|
+
* DescribeYarnQueue请求参数结构体
|
|
3671
3860
|
*/
|
|
3672
|
-
export interface
|
|
3861
|
+
export interface DescribeYarnQueueRequest {
|
|
3673
3862
|
/**
|
|
3674
|
-
*
|
|
3863
|
+
* 集群Id
|
|
3675
3864
|
*/
|
|
3676
3865
|
InstanceId: string
|
|
3677
3866
|
/**
|
|
3678
|
-
*
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
"clusters": [
|
|
3683
|
-
{
|
|
3684
|
-
"cluster": {
|
|
3685
|
-
"certificate-authority-data": "xxxxxx==",
|
|
3686
|
-
"server": "https://xxxxx.com"
|
|
3687
|
-
},
|
|
3688
|
-
"name": "cls-xxxxx"
|
|
3689
|
-
}
|
|
3690
|
-
],
|
|
3691
|
-
"contexts": [
|
|
3692
|
-
{
|
|
3693
|
-
"context": {
|
|
3694
|
-
"cluster": "cls-xxxxx",
|
|
3695
|
-
"user": "100014xxxxx"
|
|
3696
|
-
},
|
|
3697
|
-
"name": "cls-a44yhcxxxxxxxxxx"
|
|
3698
|
-
}
|
|
3699
|
-
],
|
|
3700
|
-
"current-context": "cls-a4xxxx-context-default",
|
|
3701
|
-
"kind": "Config",
|
|
3702
|
-
"preferences": {},
|
|
3703
|
-
"users": [
|
|
3704
|
-
{
|
|
3705
|
-
"name": "100014xxxxx",
|
|
3706
|
-
"user": {
|
|
3707
|
-
"client-certificate-data": "xxxxxx",
|
|
3708
|
-
"client-key-data": "xxxxxx"
|
|
3709
|
-
}
|
|
3710
|
-
}
|
|
3711
|
-
]
|
|
3712
|
-
}
|
|
3867
|
+
* 调度器,可选值:
|
|
3868
|
+
|
|
3869
|
+
1. capacity
|
|
3870
|
+
2. fair
|
|
3713
3871
|
*/
|
|
3714
|
-
|
|
3715
|
-
/**
|
|
3716
|
-
* 自定义参数
|
|
3717
|
-
如:
|
|
3718
|
-
{
|
|
3719
|
-
"apiVersion": "apps/v1",
|
|
3720
|
-
"kind": "Deployment",
|
|
3721
|
-
"metadata": {
|
|
3722
|
-
"name": "test-deployment",
|
|
3723
|
-
"labels": {
|
|
3724
|
-
"app": "test"
|
|
3725
|
-
}
|
|
3726
|
-
},
|
|
3727
|
-
"spec": {
|
|
3728
|
-
"replicas": 3,
|
|
3729
|
-
"selector": {
|
|
3730
|
-
"matchLabels": {
|
|
3731
|
-
"app": "test-app"
|
|
3732
|
-
}
|
|
3733
|
-
},
|
|
3734
|
-
"template": {
|
|
3735
|
-
"metadata": {
|
|
3736
|
-
"annotations": {
|
|
3737
|
-
"your-organization.com/department-v1": "test-example-v1",
|
|
3738
|
-
"your-organization.com/department-v2": "test-example-v2"
|
|
3739
|
-
},
|
|
3740
|
-
"labels": {
|
|
3741
|
-
"app": "test-app",
|
|
3742
|
-
"environment": "production"
|
|
3743
|
-
}
|
|
3744
|
-
},
|
|
3745
|
-
"spec": {
|
|
3746
|
-
"nodeSelector": {
|
|
3747
|
-
"your-organization/node-test": "test-node"
|
|
3748
|
-
},
|
|
3749
|
-
"containers": [
|
|
3750
|
-
{
|
|
3751
|
-
"name": "nginx",
|
|
3752
|
-
"image": "nginx:1.14.2",
|
|
3753
|
-
"ports": [
|
|
3754
|
-
{
|
|
3755
|
-
"containerPort": 80
|
|
3756
|
-
}
|
|
3757
|
-
]
|
|
3758
|
-
}
|
|
3759
|
-
],
|
|
3760
|
-
"affinity": {
|
|
3761
|
-
"nodeAffinity": {
|
|
3762
|
-
"requiredDuringSchedulingIgnoredDuringExecution": {
|
|
3763
|
-
"nodeSelectorTerms": [
|
|
3764
|
-
{
|
|
3765
|
-
"matchExpressions": [
|
|
3766
|
-
{
|
|
3767
|
-
"key": "disk-type",
|
|
3768
|
-
"operator": "In",
|
|
3769
|
-
"values": [
|
|
3770
|
-
"ssd",
|
|
3771
|
-
"sas"
|
|
3772
|
-
]
|
|
3773
|
-
},
|
|
3774
|
-
{
|
|
3775
|
-
"key": "cpu-num",
|
|
3776
|
-
"operator": "Gt",
|
|
3777
|
-
"values": [
|
|
3778
|
-
"6"
|
|
3779
|
-
]
|
|
3780
|
-
}
|
|
3781
|
-
]
|
|
3782
|
-
}
|
|
3783
|
-
]
|
|
3784
|
-
}
|
|
3785
|
-
}
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
}
|
|
3791
|
-
*/
|
|
3792
|
-
Parameter: string
|
|
3872
|
+
Scheduler: string
|
|
3793
3873
|
}
|
|
3794
3874
|
|
|
3795
3875
|
/**
|
|
3796
|
-
*
|
|
3876
|
+
* DescribeImpalaQueries返回参数结构体
|
|
3797
3877
|
*/
|
|
3798
|
-
export interface
|
|
3799
|
-
/**
|
|
3800
|
-
* 查询到的节点总数
|
|
3801
|
-
*/
|
|
3802
|
-
TotalCnt: number
|
|
3878
|
+
export interface DescribeImpalaQueriesResponse {
|
|
3803
3879
|
/**
|
|
3804
|
-
*
|
|
3805
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
3880
|
+
* 总数
|
|
3806
3881
|
*/
|
|
3807
|
-
|
|
3882
|
+
Total?: number
|
|
3808
3883
|
/**
|
|
3809
|
-
*
|
|
3810
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
3884
|
+
* 结果列表
|
|
3811
3885
|
*/
|
|
3812
|
-
|
|
3886
|
+
Results?: Array<ImpalaQuery>
|
|
3813
3887
|
/**
|
|
3814
3888
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3815
3889
|
*/
|
|
@@ -3871,6 +3945,38 @@ export interface ScaleOutServiceConfGroupsInfo {
|
|
|
3871
3945
|
ConfGroupName?: string
|
|
3872
3946
|
}
|
|
3873
3947
|
|
|
3948
|
+
/**
|
|
3949
|
+
* 用户管理中用户的简要信息
|
|
3950
|
+
*/
|
|
3951
|
+
export interface UserManagerUserBriefInfo {
|
|
3952
|
+
/**
|
|
3953
|
+
* 用户名
|
|
3954
|
+
*/
|
|
3955
|
+
UserName: string
|
|
3956
|
+
/**
|
|
3957
|
+
* 用户所属的组
|
|
3958
|
+
*/
|
|
3959
|
+
UserGroup: string
|
|
3960
|
+
/**
|
|
3961
|
+
* Manager表示管理员、NormalUser表示普通用户
|
|
3962
|
+
*/
|
|
3963
|
+
UserType: string
|
|
3964
|
+
/**
|
|
3965
|
+
* 用户创建时间
|
|
3966
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3967
|
+
*/
|
|
3968
|
+
CreateTime: string
|
|
3969
|
+
/**
|
|
3970
|
+
* 是否可以下载用户对应的keytab文件,对开启kerberos的集群才有意义
|
|
3971
|
+
*/
|
|
3972
|
+
SupportDownLoadKeyTab: boolean
|
|
3973
|
+
/**
|
|
3974
|
+
* keytab文件的下载地址
|
|
3975
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3976
|
+
*/
|
|
3977
|
+
DownLoadKeyTabUrl: string
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3874
3980
|
/**
|
|
3875
3981
|
* DescribeYarnScheduleHistory返回参数结构体
|
|
3876
3982
|
*/
|
|
@@ -4164,6 +4270,27 @@ export interface DeleteUserManagerUserListRequest {
|
|
|
4164
4270
|
UserGroupList?: Array<UserAndGroup>
|
|
4165
4271
|
}
|
|
4166
4272
|
|
|
4273
|
+
/**
|
|
4274
|
+
* Pod的存储设备描述信息。
|
|
4275
|
+
*/
|
|
4276
|
+
export interface PodVolume {
|
|
4277
|
+
/**
|
|
4278
|
+
* 存储类型,可为"pvc","hostpath"。
|
|
4279
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4280
|
+
*/
|
|
4281
|
+
VolumeType: string
|
|
4282
|
+
/**
|
|
4283
|
+
* 当VolumeType为"pvc"时,该字段生效。
|
|
4284
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4285
|
+
*/
|
|
4286
|
+
PVCVolume?: PersistentVolumeContext
|
|
4287
|
+
/**
|
|
4288
|
+
* 当VolumeType为"hostpath"时,该字段生效。
|
|
4289
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4290
|
+
*/
|
|
4291
|
+
HostVolume?: HostVolumeContext
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4167
4294
|
/**
|
|
4168
4295
|
* 价格详情
|
|
4169
4296
|
*/
|
|
@@ -4193,19 +4320,19 @@ export interface DescribeResourceScheduleResponse {
|
|
|
4193
4320
|
/**
|
|
4194
4321
|
* 资源调度功能是否开启
|
|
4195
4322
|
*/
|
|
4196
|
-
OpenSwitch
|
|
4323
|
+
OpenSwitch?: boolean
|
|
4197
4324
|
/**
|
|
4198
4325
|
* 正在使用的资源调度器
|
|
4199
4326
|
*/
|
|
4200
|
-
Scheduler
|
|
4327
|
+
Scheduler?: string
|
|
4201
4328
|
/**
|
|
4202
4329
|
* 公平调度器的信息
|
|
4203
4330
|
*/
|
|
4204
|
-
FSInfo
|
|
4331
|
+
FSInfo?: string
|
|
4205
4332
|
/**
|
|
4206
4333
|
* 容量调度器的信息
|
|
4207
4334
|
*/
|
|
4208
|
-
CSInfo
|
|
4335
|
+
CSInfo?: string
|
|
4209
4336
|
/**
|
|
4210
4337
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4211
4338
|
*/
|
|
@@ -4653,6 +4780,83 @@ export interface DeleteAutoScaleStrategyResponse {
|
|
|
4653
4780
|
RequestId?: string
|
|
4654
4781
|
}
|
|
4655
4782
|
|
|
4783
|
+
/**
|
|
4784
|
+
* 任务步骤详情
|
|
4785
|
+
*/
|
|
4786
|
+
export interface StageInfoDetail {
|
|
4787
|
+
/**
|
|
4788
|
+
* 步骤id
|
|
4789
|
+
*/
|
|
4790
|
+
Stage?: string
|
|
4791
|
+
/**
|
|
4792
|
+
* 步骤名
|
|
4793
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4794
|
+
*/
|
|
4795
|
+
Name?: string
|
|
4796
|
+
/**
|
|
4797
|
+
* 是否展示
|
|
4798
|
+
*/
|
|
4799
|
+
IsShow?: boolean
|
|
4800
|
+
/**
|
|
4801
|
+
* 是否子流程
|
|
4802
|
+
*/
|
|
4803
|
+
IsSubFlow?: boolean
|
|
4804
|
+
/**
|
|
4805
|
+
* 子流程标签
|
|
4806
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4807
|
+
*/
|
|
4808
|
+
SubFlowFlag?: string
|
|
4809
|
+
/**
|
|
4810
|
+
* 步骤运行状态:0:未开始 1:进行中 2:已完成 3:部分完成 -1:失败
|
|
4811
|
+
*/
|
|
4812
|
+
Status?: number
|
|
4813
|
+
/**
|
|
4814
|
+
* 步骤运行状态描述
|
|
4815
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4816
|
+
*/
|
|
4817
|
+
Desc?: string
|
|
4818
|
+
/**
|
|
4819
|
+
* 运行进度
|
|
4820
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4821
|
+
*/
|
|
4822
|
+
Progress?: number
|
|
4823
|
+
/**
|
|
4824
|
+
* 开始时间
|
|
4825
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4826
|
+
*/
|
|
4827
|
+
Starttime?: string
|
|
4828
|
+
/**
|
|
4829
|
+
* 结束时间
|
|
4830
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4831
|
+
*/
|
|
4832
|
+
Endtime?: string
|
|
4833
|
+
/**
|
|
4834
|
+
* 是否有详情信息
|
|
4835
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4836
|
+
*/
|
|
4837
|
+
HadWoodDetail?: boolean
|
|
4838
|
+
/**
|
|
4839
|
+
* Wood子流程Id
|
|
4840
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4841
|
+
*/
|
|
4842
|
+
WoodJobId?: number
|
|
4843
|
+
/**
|
|
4844
|
+
* 多语言版本Key
|
|
4845
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4846
|
+
*/
|
|
4847
|
+
LanguageKey?: string
|
|
4848
|
+
/**
|
|
4849
|
+
* 如果stage失败,失败原因
|
|
4850
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4851
|
+
*/
|
|
4852
|
+
FailedReason?: string
|
|
4853
|
+
/**
|
|
4854
|
+
* 步骤耗时
|
|
4855
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4856
|
+
*/
|
|
4857
|
+
TimeConsuming?: string
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4656
4860
|
/**
|
|
4657
4861
|
* CreateCluster返回参数结构体
|
|
4658
4862
|
*/
|
|
@@ -5028,6 +5232,27 @@ export interface DescribeClusterNodesRequest {
|
|
|
5028
5232
|
Asc?: number
|
|
5029
5233
|
}
|
|
5030
5234
|
|
|
5235
|
+
/**
|
|
5236
|
+
* ModifyYarnQueueV2请求参数结构体
|
|
5237
|
+
*/
|
|
5238
|
+
export interface ModifyYarnQueueV2Request {
|
|
5239
|
+
/**
|
|
5240
|
+
* 集群Id
|
|
5241
|
+
*/
|
|
5242
|
+
InstanceId: string
|
|
5243
|
+
/**
|
|
5244
|
+
* 调度器类型。可选值:
|
|
5245
|
+
|
|
5246
|
+
1. capacity
|
|
5247
|
+
2. fair
|
|
5248
|
+
*/
|
|
5249
|
+
Scheduler: string
|
|
5250
|
+
/**
|
|
5251
|
+
* 资源池数据
|
|
5252
|
+
*/
|
|
5253
|
+
ConfigModifyInfoList: Array<ConfigModifyInfoV2>
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5031
5256
|
/**
|
|
5032
5257
|
* DescribeCvmQuota请求参数结构体
|
|
5033
5258
|
*/
|
|
@@ -5543,6 +5768,16 @@ export interface DescribeAutoScaleStrategiesRequest {
|
|
|
5543
5768
|
GroupId?: number
|
|
5544
5769
|
}
|
|
5545
5770
|
|
|
5771
|
+
/**
|
|
5772
|
+
* DeployYarnConf请求参数结构体
|
|
5773
|
+
*/
|
|
5774
|
+
export interface DeployYarnConfRequest {
|
|
5775
|
+
/**
|
|
5776
|
+
* emr集群的英文id
|
|
5777
|
+
*/
|
|
5778
|
+
InstanceId: string
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5546
5781
|
/**
|
|
5547
5782
|
* TerminateClusterNodes请求参数结构体
|
|
5548
5783
|
*/
|
|
@@ -5606,6 +5841,17 @@ export interface DescribeInstancesListRequest {
|
|
|
5606
5841
|
Filters?: Array<Filters>
|
|
5607
5842
|
}
|
|
5608
5843
|
|
|
5844
|
+
/**
|
|
5845
|
+
* 键值对组成的列表
|
|
5846
|
+
*/
|
|
5847
|
+
export interface ItemSeq {
|
|
5848
|
+
/**
|
|
5849
|
+
* 标签名称
|
|
5850
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5851
|
+
*/
|
|
5852
|
+
Items: Array<Item>
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5609
5855
|
/**
|
|
5610
5856
|
* 定时伸缩任务策略
|
|
5611
5857
|
*/
|
|
@@ -5642,11 +5888,54 @@ export interface RepeatStrategy {
|
|
|
5642
5888
|
}
|
|
5643
5889
|
|
|
5644
5890
|
/**
|
|
5645
|
-
*
|
|
5891
|
+
* 集群续费实例信息
|
|
5646
5892
|
*/
|
|
5647
|
-
export interface
|
|
5893
|
+
export interface RenewInstancesInfo {
|
|
5648
5894
|
/**
|
|
5649
|
-
*
|
|
5895
|
+
* 节点资源ID
|
|
5896
|
+
*/
|
|
5897
|
+
EmrResourceId?: string
|
|
5898
|
+
/**
|
|
5899
|
+
* 节点类型。0:common节点;1:master节点
|
|
5900
|
+
;2:core节点;3:task节点
|
|
5901
|
+
*/
|
|
5902
|
+
Flag?: number
|
|
5903
|
+
/**
|
|
5904
|
+
* 内网IP
|
|
5905
|
+
*/
|
|
5906
|
+
Ip?: string
|
|
5907
|
+
/**
|
|
5908
|
+
* 节点内存描述
|
|
5909
|
+
*/
|
|
5910
|
+
MemDesc?: string
|
|
5911
|
+
/**
|
|
5912
|
+
* 节点核数
|
|
5913
|
+
*/
|
|
5914
|
+
CpuNum?: number
|
|
5915
|
+
/**
|
|
5916
|
+
* 硬盘大小
|
|
5917
|
+
*/
|
|
5918
|
+
DiskSize?: string
|
|
5919
|
+
/**
|
|
5920
|
+
* 过期时间
|
|
5921
|
+
*/
|
|
5922
|
+
ExpireTime?: string
|
|
5923
|
+
/**
|
|
5924
|
+
* 节点规格
|
|
5925
|
+
*/
|
|
5926
|
+
Spec?: string
|
|
5927
|
+
/**
|
|
5928
|
+
* 磁盘类型
|
|
5929
|
+
*/
|
|
5930
|
+
StorageType?: number
|
|
5931
|
+
}
|
|
5932
|
+
|
|
5933
|
+
/**
|
|
5934
|
+
* 资源详情
|
|
5935
|
+
*/
|
|
5936
|
+
export interface OutterResource {
|
|
5937
|
+
/**
|
|
5938
|
+
* 规格
|
|
5650
5939
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5651
5940
|
*/
|
|
5652
5941
|
Spec: string
|
|
@@ -5726,17 +6015,13 @@ export interface DeleteAutoScaleStrategyRequest {
|
|
|
5726
6015
|
}
|
|
5727
6016
|
|
|
5728
6017
|
/**
|
|
5729
|
-
*
|
|
6018
|
+
* DeployYarnConf返回参数结构体
|
|
5730
6019
|
*/
|
|
5731
|
-
export interface
|
|
6020
|
+
export interface DeployYarnConfResponse {
|
|
5732
6021
|
/**
|
|
5733
|
-
*
|
|
6022
|
+
* 启动流程后的流程ID,可以使用[DescribeClusterFlowStatusDetail](https://cloud.tencent.com/document/product/589/107224)接口来获取流程状态
|
|
5734
6023
|
*/
|
|
5735
|
-
|
|
5736
|
-
/**
|
|
5737
|
-
* 集群实例列表
|
|
5738
|
-
*/
|
|
5739
|
-
InstancesList?: Array<EmrListInstance>
|
|
6024
|
+
FlowId?: number
|
|
5740
6025
|
/**
|
|
5741
6026
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5742
6027
|
*/
|
|
@@ -5760,12 +6045,12 @@ export interface ModifyResourcePoolsResponse {
|
|
|
5760
6045
|
/**
|
|
5761
6046
|
* false表示不是草稿,提交刷新请求成功
|
|
5762
6047
|
*/
|
|
5763
|
-
IsDraft
|
|
6048
|
+
IsDraft?: boolean
|
|
5764
6049
|
/**
|
|
5765
6050
|
* 扩展字段,暂时没用
|
|
5766
6051
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5767
6052
|
*/
|
|
5768
|
-
ErrorMsg
|
|
6053
|
+
ErrorMsg?: string
|
|
5769
6054
|
/**
|
|
5770
6055
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5771
6056
|
*/
|
|
@@ -6322,6 +6607,132 @@ export interface UserInfoForUserManager {
|
|
|
6322
6607
|
ReMark?: string
|
|
6323
6608
|
}
|
|
6324
6609
|
|
|
6610
|
+
/**
|
|
6611
|
+
* POD自定义权限和自定义参数
|
|
6612
|
+
*/
|
|
6613
|
+
export interface PodNewParameter {
|
|
6614
|
+
/**
|
|
6615
|
+
* TKE或EKS集群ID
|
|
6616
|
+
*/
|
|
6617
|
+
InstanceId: string
|
|
6618
|
+
/**
|
|
6619
|
+
* 自定义权限
|
|
6620
|
+
如:
|
|
6621
|
+
{
|
|
6622
|
+
"apiVersion": "v1",
|
|
6623
|
+
"clusters": [
|
|
6624
|
+
{
|
|
6625
|
+
"cluster": {
|
|
6626
|
+
"certificate-authority-data": "xxxxxx==",
|
|
6627
|
+
"server": "https://xxxxx.com"
|
|
6628
|
+
},
|
|
6629
|
+
"name": "cls-xxxxx"
|
|
6630
|
+
}
|
|
6631
|
+
],
|
|
6632
|
+
"contexts": [
|
|
6633
|
+
{
|
|
6634
|
+
"context": {
|
|
6635
|
+
"cluster": "cls-xxxxx",
|
|
6636
|
+
"user": "100014xxxxx"
|
|
6637
|
+
},
|
|
6638
|
+
"name": "cls-a44yhcxxxxxxxxxx"
|
|
6639
|
+
}
|
|
6640
|
+
],
|
|
6641
|
+
"current-context": "cls-a4xxxx-context-default",
|
|
6642
|
+
"kind": "Config",
|
|
6643
|
+
"preferences": {},
|
|
6644
|
+
"users": [
|
|
6645
|
+
{
|
|
6646
|
+
"name": "100014xxxxx",
|
|
6647
|
+
"user": {
|
|
6648
|
+
"client-certificate-data": "xxxxxx",
|
|
6649
|
+
"client-key-data": "xxxxxx"
|
|
6650
|
+
}
|
|
6651
|
+
}
|
|
6652
|
+
]
|
|
6653
|
+
}
|
|
6654
|
+
*/
|
|
6655
|
+
Config: string
|
|
6656
|
+
/**
|
|
6657
|
+
* 自定义参数
|
|
6658
|
+
如:
|
|
6659
|
+
{
|
|
6660
|
+
"apiVersion": "apps/v1",
|
|
6661
|
+
"kind": "Deployment",
|
|
6662
|
+
"metadata": {
|
|
6663
|
+
"name": "test-deployment",
|
|
6664
|
+
"labels": {
|
|
6665
|
+
"app": "test"
|
|
6666
|
+
}
|
|
6667
|
+
},
|
|
6668
|
+
"spec": {
|
|
6669
|
+
"replicas": 3,
|
|
6670
|
+
"selector": {
|
|
6671
|
+
"matchLabels": {
|
|
6672
|
+
"app": "test-app"
|
|
6673
|
+
}
|
|
6674
|
+
},
|
|
6675
|
+
"template": {
|
|
6676
|
+
"metadata": {
|
|
6677
|
+
"annotations": {
|
|
6678
|
+
"your-organization.com/department-v1": "test-example-v1",
|
|
6679
|
+
"your-organization.com/department-v2": "test-example-v2"
|
|
6680
|
+
},
|
|
6681
|
+
"labels": {
|
|
6682
|
+
"app": "test-app",
|
|
6683
|
+
"environment": "production"
|
|
6684
|
+
}
|
|
6685
|
+
},
|
|
6686
|
+
"spec": {
|
|
6687
|
+
"nodeSelector": {
|
|
6688
|
+
"your-organization/node-test": "test-node"
|
|
6689
|
+
},
|
|
6690
|
+
"containers": [
|
|
6691
|
+
{
|
|
6692
|
+
"name": "nginx",
|
|
6693
|
+
"image": "nginx:1.14.2",
|
|
6694
|
+
"ports": [
|
|
6695
|
+
{
|
|
6696
|
+
"containerPort": 80
|
|
6697
|
+
}
|
|
6698
|
+
]
|
|
6699
|
+
}
|
|
6700
|
+
],
|
|
6701
|
+
"affinity": {
|
|
6702
|
+
"nodeAffinity": {
|
|
6703
|
+
"requiredDuringSchedulingIgnoredDuringExecution": {
|
|
6704
|
+
"nodeSelectorTerms": [
|
|
6705
|
+
{
|
|
6706
|
+
"matchExpressions": [
|
|
6707
|
+
{
|
|
6708
|
+
"key": "disk-type",
|
|
6709
|
+
"operator": "In",
|
|
6710
|
+
"values": [
|
|
6711
|
+
"ssd",
|
|
6712
|
+
"sas"
|
|
6713
|
+
]
|
|
6714
|
+
},
|
|
6715
|
+
{
|
|
6716
|
+
"key": "cpu-num",
|
|
6717
|
+
"operator": "Gt",
|
|
6718
|
+
"values": [
|
|
6719
|
+
"6"
|
|
6720
|
+
]
|
|
6721
|
+
}
|
|
6722
|
+
]
|
|
6723
|
+
}
|
|
6724
|
+
]
|
|
6725
|
+
}
|
|
6726
|
+
}
|
|
6727
|
+
}
|
|
6728
|
+
}
|
|
6729
|
+
}
|
|
6730
|
+
}
|
|
6731
|
+
}
|
|
6732
|
+
*/
|
|
6733
|
+
Parameter: string
|
|
6734
|
+
}
|
|
6735
|
+
|
|
6325
6736
|
/**
|
|
6326
6737
|
* DescribeEmrOverviewMetrics请求参数结构体
|
|
6327
6738
|
*/
|
|
@@ -6544,61 +6955,13 @@ export interface RestartPolicy {
|
|
|
6544
6955
|
}
|
|
6545
6956
|
|
|
6546
6957
|
/**
|
|
6547
|
-
*
|
|
6958
|
+
* ModifyYarnQueueV2返回参数结构体
|
|
6548
6959
|
*/
|
|
6549
|
-
export interface
|
|
6550
|
-
/**
|
|
6551
|
-
* 脚本在COS上路径,已废弃
|
|
6552
|
-
*/
|
|
6553
|
-
Path?: string
|
|
6554
|
-
/**
|
|
6555
|
-
* 执行脚本参数
|
|
6556
|
-
*/
|
|
6557
|
-
Args?: Array<string>
|
|
6558
|
-
/**
|
|
6559
|
-
* COS的Bucket名称,已废弃
|
|
6560
|
-
*/
|
|
6561
|
-
Bucket?: string
|
|
6960
|
+
export interface ModifyYarnQueueV2Response {
|
|
6562
6961
|
/**
|
|
6563
|
-
*
|
|
6564
|
-
*/
|
|
6565
|
-
Region?: string
|
|
6566
|
-
/**
|
|
6567
|
-
* COS的Domain数据,已废弃
|
|
6568
|
-
*/
|
|
6569
|
-
Domain?: string
|
|
6570
|
-
/**
|
|
6571
|
-
* 执行顺序
|
|
6572
|
-
*/
|
|
6573
|
-
RunOrder?: number
|
|
6574
|
-
/**
|
|
6575
|
-
* resourceAfter 或 clusterAfter
|
|
6576
|
-
*/
|
|
6577
|
-
WhenRun?: string
|
|
6578
|
-
/**
|
|
6579
|
-
* 脚本文件名,已废弃
|
|
6580
|
-
*/
|
|
6581
|
-
CosFileName?: string
|
|
6582
|
-
/**
|
|
6583
|
-
* 脚本的cos地址
|
|
6584
|
-
*/
|
|
6585
|
-
CosFileURI?: string
|
|
6586
|
-
/**
|
|
6587
|
-
* cos的SecretId
|
|
6588
|
-
*/
|
|
6589
|
-
CosSecretId?: string
|
|
6590
|
-
/**
|
|
6591
|
-
* Cos的SecretKey
|
|
6592
|
-
*/
|
|
6593
|
-
CosSecretKey?: string
|
|
6594
|
-
/**
|
|
6595
|
-
* cos的appid,已废弃
|
|
6596
|
-
*/
|
|
6597
|
-
AppId?: string
|
|
6598
|
-
/**
|
|
6599
|
-
* 备注
|
|
6962
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6600
6963
|
*/
|
|
6601
|
-
|
|
6964
|
+
RequestId?: string
|
|
6602
6965
|
}
|
|
6603
6966
|
|
|
6604
6967
|
/**
|
|
@@ -6716,6 +7079,16 @@ export interface InquiryPriceScaleOutInstanceRequest {
|
|
|
6716
7079
|
HardwareResourceType?: string
|
|
6717
7080
|
}
|
|
6718
7081
|
|
|
7082
|
+
/**
|
|
7083
|
+
* ResetYarnConfig返回参数结构体
|
|
7084
|
+
*/
|
|
7085
|
+
export interface ResetYarnConfigResponse {
|
|
7086
|
+
/**
|
|
7087
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7088
|
+
*/
|
|
7089
|
+
RequestId?: string
|
|
7090
|
+
}
|
|
7091
|
+
|
|
6719
7092
|
/**
|
|
6720
7093
|
* 负载指标
|
|
6721
7094
|
*/
|
|
@@ -6881,17 +7254,23 @@ export interface LoadMetricsCondition {
|
|
|
6881
7254
|
}
|
|
6882
7255
|
|
|
6883
7256
|
/**
|
|
6884
|
-
*
|
|
7257
|
+
* DescribeInstanceRenewNodes返回参数结构体
|
|
6885
7258
|
*/
|
|
6886
|
-
export interface
|
|
7259
|
+
export interface DescribeInstanceRenewNodesResponse {
|
|
6887
7260
|
/**
|
|
6888
|
-
*
|
|
7261
|
+
* 查询到的节点总数
|
|
6889
7262
|
*/
|
|
6890
|
-
|
|
7263
|
+
TotalCnt: number
|
|
6891
7264
|
/**
|
|
6892
|
-
*
|
|
7265
|
+
* 节点详细信息列表
|
|
7266
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6893
7267
|
*/
|
|
6894
|
-
|
|
7268
|
+
NodeList: Array<RenewInstancesInfo>
|
|
7269
|
+
/**
|
|
7270
|
+
* 用户所有的标签键列表
|
|
7271
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7272
|
+
*/
|
|
7273
|
+
MetaInfo: Array<string>
|
|
6895
7274
|
/**
|
|
6896
7275
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6897
7276
|
*/
|
|
@@ -6928,35 +7307,19 @@ export interface CustomMetaDBInfo {
|
|
|
6928
7307
|
}
|
|
6929
7308
|
|
|
6930
7309
|
/**
|
|
6931
|
-
*
|
|
7310
|
+
* 代表一个kv结构
|
|
6932
7311
|
*/
|
|
6933
|
-
export interface
|
|
6934
|
-
/**
|
|
6935
|
-
* 用户名
|
|
6936
|
-
*/
|
|
6937
|
-
UserName: string
|
|
6938
|
-
/**
|
|
6939
|
-
* 用户所属的组
|
|
6940
|
-
*/
|
|
6941
|
-
UserGroup: string
|
|
7312
|
+
export interface Item {
|
|
6942
7313
|
/**
|
|
6943
|
-
*
|
|
6944
|
-
*/
|
|
6945
|
-
UserType: string
|
|
6946
|
-
/**
|
|
6947
|
-
* 用户创建时间
|
|
7314
|
+
* 健值
|
|
6948
7315
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6949
7316
|
*/
|
|
6950
|
-
|
|
6951
|
-
/**
|
|
6952
|
-
* 是否可以下载用户对应的keytab文件,对开启kerberos的集群才有意义
|
|
6953
|
-
*/
|
|
6954
|
-
SupportDownLoadKeyTab: boolean
|
|
7317
|
+
Key: string
|
|
6955
7318
|
/**
|
|
6956
|
-
*
|
|
7319
|
+
* 值
|
|
6957
7320
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6958
7321
|
*/
|
|
6959
|
-
|
|
7322
|
+
Value: string
|
|
6960
7323
|
}
|
|
6961
7324
|
|
|
6962
7325
|
/**
|
|
@@ -6993,80 +7356,83 @@ export interface TableSchemaItem {
|
|
|
6993
7356
|
}
|
|
6994
7357
|
|
|
6995
7358
|
/**
|
|
6996
|
-
*
|
|
7359
|
+
* 资源调度 - 队列修改信息
|
|
6997
7360
|
*/
|
|
6998
|
-
export interface
|
|
6999
|
-
/**
|
|
7000
|
-
* 步骤id
|
|
7001
|
-
*/
|
|
7002
|
-
Stage?: string
|
|
7003
|
-
/**
|
|
7004
|
-
* 步骤名
|
|
7005
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
7006
|
-
*/
|
|
7007
|
-
Name?: string
|
|
7008
|
-
/**
|
|
7009
|
-
* 是否展示
|
|
7010
|
-
*/
|
|
7011
|
-
IsShow?: boolean
|
|
7012
|
-
/**
|
|
7013
|
-
* 是否子流程
|
|
7014
|
-
*/
|
|
7015
|
-
IsSubFlow?: boolean
|
|
7016
|
-
/**
|
|
7017
|
-
* 子流程标签
|
|
7018
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
7019
|
-
*/
|
|
7020
|
-
SubFlowFlag?: string
|
|
7021
|
-
/**
|
|
7022
|
-
* 步骤运行状态:0:未开始 1:进行中 2:已完成 3:部分完成 -1:失败
|
|
7023
|
-
*/
|
|
7024
|
-
Status?: number
|
|
7361
|
+
export interface ConfigModifyInfoV2 {
|
|
7025
7362
|
/**
|
|
7026
|
-
*
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
Progress?: number
|
|
7035
|
-
/**
|
|
7036
|
-
* 开始时间
|
|
7363
|
+
* 操作类型,可选值:
|
|
7364
|
+
|
|
7365
|
+
- 0:新建队列
|
|
7366
|
+
- 1:编辑-全量覆盖
|
|
7367
|
+
- 2:新建子队列
|
|
7368
|
+
- 3:删除
|
|
7369
|
+
- 4:克隆,与新建子队列的行为一样,特别的对于`fair`,可以复制子队列到新建队列
|
|
7370
|
+
- 6:编辑-增量更新
|
|
7037
7371
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7038
7372
|
*/
|
|
7039
|
-
|
|
7373
|
+
OpType: number
|
|
7040
7374
|
/**
|
|
7041
|
-
*
|
|
7042
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
7375
|
+
* 队列名称,不支持修改。
|
|
7043
7376
|
*/
|
|
7044
|
-
|
|
7377
|
+
Name?: string
|
|
7045
7378
|
/**
|
|
7046
|
-
*
|
|
7379
|
+
* 新建队列 传root的MyId;新建子队列 传 选中队列的 myId;克隆 要传 选中队列 parentId
|
|
7047
7380
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7048
7381
|
*/
|
|
7049
|
-
|
|
7382
|
+
ParentId?: string
|
|
7050
7383
|
/**
|
|
7051
|
-
*
|
|
7384
|
+
* 编辑、删除 传选中队列的 myId。克隆只有在调度器是`fair`时才需要传,用来复制子队列到新队列。
|
|
7052
7385
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7053
7386
|
*/
|
|
7054
|
-
|
|
7387
|
+
MyId?: string
|
|
7055
7388
|
/**
|
|
7056
|
-
*
|
|
7389
|
+
* 基础配置信息。key的取值与**DescribeYarnQueue**返回的字段一致。
|
|
7390
|
+
###### 公平调度器
|
|
7391
|
+
key的取值信息如下:
|
|
7392
|
+
|
|
7393
|
+
- type,父队列,取值为 **parent** 或 **null**
|
|
7394
|
+
- aclSubmitApps,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7395
|
+
- aclAdministerApps,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7396
|
+
- minSharePreemptionTimeout,最小共享优先权超时时间,取值为**数字字符串**或**null**
|
|
7397
|
+
- fairSharePreemptionTimeout,公平份额抢占超时时间,取值为**数字字符串**或**null**
|
|
7398
|
+
- fairSharePreemptionThreshold,公平份额抢占阈值,取值为**数字字符串**或**null**,其中数字的范围是(0,1]
|
|
7399
|
+
- allowPreemptionFrom,抢占模式,取值为**布尔字符串**或**null**
|
|
7400
|
+
- schedulingPolicy,调度策略,取值为**drf**、**fair**、**fifo**或**null**
|
|
7401
|
+
|
|
7402
|
+
```
|
|
7403
|
+
type AclForYarnQueue struct {
|
|
7404
|
+
User *string `json:"user"` //用户名
|
|
7405
|
+
Group *string `json:"group"`//组名
|
|
7406
|
+
}
|
|
7407
|
+
```
|
|
7408
|
+
###### 容量调度器
|
|
7409
|
+
key的取值信息如下:
|
|
7410
|
+
|
|
7411
|
+
- state,队列状态,取值为**STOPPED**或**RUNNING**
|
|
7412
|
+
- default-node-label-expression,默认标签表达式,取值为**标签**或**null**
|
|
7413
|
+
- acl_submit_applications,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7414
|
+
- acl_administer_queue,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7415
|
+
- maximum-allocation-mb,分配Container最大内存数量,取值为**数字字符串**或**null**
|
|
7416
|
+
- maximum-allocation-vcores,Container最大vCore数量,取值为**数字字符串**或**null**
|
|
7417
|
+
```
|
|
7418
|
+
type AclForYarnQueue struct {
|
|
7419
|
+
User *string `json:"user"` //用户名
|
|
7420
|
+
Group *string `json:"group"`//组名
|
|
7421
|
+
}
|
|
7422
|
+
```
|
|
7057
7423
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7058
7424
|
*/
|
|
7059
|
-
|
|
7425
|
+
BasicParams?: ItemSeq
|
|
7060
7426
|
/**
|
|
7061
|
-
*
|
|
7427
|
+
* 配置集信息,取值见该复杂类型的参数说明。配置集是计划模式在队列中表现,表示的是不同时间段不同的配置值,所有队列的配置集名称都一样,对于单个队列,每个配置集中的标签与参数都一样,只是参数值不同。
|
|
7062
7428
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7063
7429
|
*/
|
|
7064
|
-
|
|
7430
|
+
ConfigSetParams?: Array<ConfigSetInfo>
|
|
7065
7431
|
/**
|
|
7066
|
-
*
|
|
7432
|
+
* 容量调度专用,`OpType`为`6`时才生效,表示要删除这个队列中的哪些标签。优先级高于ConfigSetParams中的LabelParams。
|
|
7067
7433
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7068
7434
|
*/
|
|
7069
|
-
|
|
7435
|
+
DeleteLables?: Array<string>
|
|
7070
7436
|
}
|
|
7071
7437
|
|
|
7072
7438
|
/**
|