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
|
@@ -76,6 +76,20 @@ export interface ClusterSetting {
|
|
|
76
76
|
*/
|
|
77
77
|
RemoteTcpDefaultPort?: boolean;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* 用于创建集群价格清单 不同可用区下价格详情
|
|
81
|
+
*/
|
|
82
|
+
export interface ZoneDetailPriceResult {
|
|
83
|
+
/**
|
|
84
|
+
* 可用区Id
|
|
85
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
86
|
+
*/
|
|
87
|
+
ZoneId: string;
|
|
88
|
+
/**
|
|
89
|
+
* 不同节点的价格详情
|
|
90
|
+
*/
|
|
91
|
+
NodeDetailPrice: Array<NodeDetailPriceResult>;
|
|
92
|
+
}
|
|
79
93
|
/**
|
|
80
94
|
* Pod相关信息
|
|
81
95
|
*/
|
|
@@ -407,24 +421,41 @@ export interface ImpalaQuery {
|
|
|
407
421
|
RemainingFragmentCount?: number;
|
|
408
422
|
}
|
|
409
423
|
/**
|
|
410
|
-
*
|
|
424
|
+
* DescribeHiveQueries请求参数结构体
|
|
411
425
|
*/
|
|
412
|
-
export interface
|
|
426
|
+
export interface DescribeHiveQueriesRequest {
|
|
413
427
|
/**
|
|
414
|
-
*
|
|
415
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
428
|
+
* 集群ID
|
|
416
429
|
*/
|
|
417
|
-
|
|
430
|
+
InstanceId: string;
|
|
418
431
|
/**
|
|
419
|
-
*
|
|
420
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
432
|
+
* 起始时间秒
|
|
421
433
|
*/
|
|
422
|
-
|
|
434
|
+
StartTime: number;
|
|
423
435
|
/**
|
|
424
|
-
*
|
|
425
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
436
|
+
* 结束时间秒,EndTime-StartTime不得超过1天秒数86400
|
|
426
437
|
*/
|
|
427
|
-
|
|
438
|
+
EndTime: number;
|
|
439
|
+
/**
|
|
440
|
+
* 分页起始偏移,从0开始
|
|
441
|
+
*/
|
|
442
|
+
Offset: number;
|
|
443
|
+
/**
|
|
444
|
+
* 分页大小,合法范围[1,100]
|
|
445
|
+
*/
|
|
446
|
+
Limit: number;
|
|
447
|
+
/**
|
|
448
|
+
* 执行状态,ERROR等
|
|
449
|
+
*/
|
|
450
|
+
State?: Array<string>;
|
|
451
|
+
/**
|
|
452
|
+
* 结束时间大于的时间点
|
|
453
|
+
*/
|
|
454
|
+
EndTimeGte?: number;
|
|
455
|
+
/**
|
|
456
|
+
* 结束时间小于时间点
|
|
457
|
+
*/
|
|
458
|
+
EndTimeLte?: number;
|
|
428
459
|
}
|
|
429
460
|
/**
|
|
430
461
|
* SyncPodState返回参数结构体
|
|
@@ -674,6 +705,63 @@ export interface Step {
|
|
|
674
705
|
*/
|
|
675
706
|
User?: string;
|
|
676
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* 预执行脚本配置
|
|
710
|
+
*/
|
|
711
|
+
export interface PreExecuteFileSettings {
|
|
712
|
+
/**
|
|
713
|
+
* 脚本在COS上路径,已废弃
|
|
714
|
+
*/
|
|
715
|
+
Path?: string;
|
|
716
|
+
/**
|
|
717
|
+
* 执行脚本参数
|
|
718
|
+
*/
|
|
719
|
+
Args?: Array<string>;
|
|
720
|
+
/**
|
|
721
|
+
* COS的Bucket名称,已废弃
|
|
722
|
+
*/
|
|
723
|
+
Bucket?: string;
|
|
724
|
+
/**
|
|
725
|
+
* COS的Region名称,已废弃
|
|
726
|
+
*/
|
|
727
|
+
Region?: string;
|
|
728
|
+
/**
|
|
729
|
+
* COS的Domain数据,已废弃
|
|
730
|
+
*/
|
|
731
|
+
Domain?: string;
|
|
732
|
+
/**
|
|
733
|
+
* 执行顺序
|
|
734
|
+
*/
|
|
735
|
+
RunOrder?: number;
|
|
736
|
+
/**
|
|
737
|
+
* resourceAfter 或 clusterAfter
|
|
738
|
+
*/
|
|
739
|
+
WhenRun?: string;
|
|
740
|
+
/**
|
|
741
|
+
* 脚本文件名,已废弃
|
|
742
|
+
*/
|
|
743
|
+
CosFileName?: string;
|
|
744
|
+
/**
|
|
745
|
+
* 脚本的cos地址
|
|
746
|
+
*/
|
|
747
|
+
CosFileURI?: string;
|
|
748
|
+
/**
|
|
749
|
+
* cos的SecretId
|
|
750
|
+
*/
|
|
751
|
+
CosSecretId?: string;
|
|
752
|
+
/**
|
|
753
|
+
* Cos的SecretKey
|
|
754
|
+
*/
|
|
755
|
+
CosSecretKey?: string;
|
|
756
|
+
/**
|
|
757
|
+
* cos的appid,已废弃
|
|
758
|
+
*/
|
|
759
|
+
AppId?: string;
|
|
760
|
+
/**
|
|
761
|
+
* 备注
|
|
762
|
+
*/
|
|
763
|
+
Remark?: string;
|
|
764
|
+
}
|
|
677
765
|
/**
|
|
678
766
|
* 键值对,主要用来做Filter
|
|
679
767
|
*/
|
|
@@ -1558,18 +1646,21 @@ export interface ScaleOutInstanceRequest {
|
|
|
1558
1646
|
ComputeResourceId?: string;
|
|
1559
1647
|
}
|
|
1560
1648
|
/**
|
|
1561
|
-
*
|
|
1649
|
+
* ResetYarnConfig请求参数结构体
|
|
1562
1650
|
*/
|
|
1563
|
-
export interface
|
|
1651
|
+
export interface ResetYarnConfigRequest {
|
|
1564
1652
|
/**
|
|
1565
|
-
*
|
|
1566
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
1653
|
+
* emr集群的英文id
|
|
1567
1654
|
*/
|
|
1568
|
-
|
|
1655
|
+
InstanceId: string;
|
|
1569
1656
|
/**
|
|
1570
|
-
*
|
|
1657
|
+
* 要重置的配置别名,可选值:
|
|
1658
|
+
|
|
1659
|
+
- capacityLabel:重置标签管理的配置
|
|
1660
|
+
- fair:重置公平调度的配置
|
|
1661
|
+
- capacity:重置容量调度的配置
|
|
1571
1662
|
*/
|
|
1572
|
-
|
|
1663
|
+
Key?: string;
|
|
1573
1664
|
}
|
|
1574
1665
|
/**
|
|
1575
1666
|
* DescribeHBaseTableOverview返回参数结构体
|
|
@@ -1686,17 +1777,17 @@ export interface ModifyResourceScheduleConfigResponse {
|
|
|
1686
1777
|
/**
|
|
1687
1778
|
* true为草稿,表示还没有刷新资源池
|
|
1688
1779
|
*/
|
|
1689
|
-
IsDraft
|
|
1780
|
+
IsDraft?: boolean;
|
|
1690
1781
|
/**
|
|
1691
1782
|
* 校验错误信息,如果不为空,则说明校验失败,配置没有成功
|
|
1692
1783
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1693
1784
|
*/
|
|
1694
|
-
ErrorMsg
|
|
1785
|
+
ErrorMsg?: string;
|
|
1695
1786
|
/**
|
|
1696
1787
|
* 返回数据
|
|
1697
1788
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1698
1789
|
*/
|
|
1699
|
-
Data
|
|
1790
|
+
Data?: string;
|
|
1700
1791
|
/**
|
|
1701
1792
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1702
1793
|
*/
|
|
@@ -2136,6 +2227,115 @@ export interface AddUsersForUserManagerResponse {
|
|
|
2136
2227
|
*/
|
|
2137
2228
|
RequestId?: string;
|
|
2138
2229
|
}
|
|
2230
|
+
/**
|
|
2231
|
+
* DescribeYarnQueue返回参数结构体
|
|
2232
|
+
*/
|
|
2233
|
+
export interface DescribeYarnQueueResponse {
|
|
2234
|
+
/**
|
|
2235
|
+
* 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
|
|
2236
|
+
|
|
2237
|
+
```
|
|
2238
|
+
Name string `json:"name"` //队列名称
|
|
2239
|
+
```
|
|
2240
|
+
- `Name`:字段名
|
|
2241
|
+
- `string`:字段类型
|
|
2242
|
+
- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
|
|
2243
|
+
- `//`:后面的注释内容对应页面上看到的名称
|
|
2244
|
+
|
|
2245
|
+
字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
|
|
2246
|
+
|
|
2247
|
+
- 公平调度器
|
|
2248
|
+
|
|
2249
|
+
```
|
|
2250
|
+
type QueueWithConfigSetForFairScheduler struct {
|
|
2251
|
+
Name string `json:"name"` //队列名称
|
|
2252
|
+
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
|
2253
|
+
ParentId string `json:"parentId"` // 父队列Id
|
|
2254
|
+
Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
|
|
2255
|
+
AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
|
|
2256
|
+
AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
|
|
2257
|
+
MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
|
|
2258
|
+
FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
|
|
2259
|
+
FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
|
|
2260
|
+
AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
|
|
2261
|
+
SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
|
|
2262
|
+
IsDefault *bool `json:"isDefault"` // 是否是root.default队列
|
|
2263
|
+
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
|
2264
|
+
ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
|
|
2265
|
+
Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
type AclForYarnQueue struct {
|
|
2269
|
+
User *string `json:"user"` //用户名
|
|
2270
|
+
Group *string `json:"group"`//组名
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
type ConfigSetForFairScheduler struct {
|
|
2274
|
+
Name string `json:"name"` // 配置集名称
|
|
2275
|
+
MinResources *YarnResource `json:"minResources"` // 最小资源量
|
|
2276
|
+
MaxResources *YarnResource `json:"maxResources"` // 最大资源量
|
|
2277
|
+
MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
|
|
2278
|
+
MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
|
|
2279
|
+
Weight *float32 `json:"weight"` // 权重
|
|
2280
|
+
MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
type YarnResource struct {
|
|
2284
|
+
Vcores *int `json:"vcores"`
|
|
2285
|
+
Memory *int `json:"memory"`
|
|
2286
|
+
Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
|
|
2287
|
+
}
|
|
2288
|
+
```
|
|
2289
|
+
|
|
2290
|
+
- 容量调度器
|
|
2291
|
+
|
|
2292
|
+
```
|
|
2293
|
+
type QueueForCapacitySchedulerV3 struct {
|
|
2294
|
+
Name string `json:"name"` // 队列名称
|
|
2295
|
+
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
|
2296
|
+
ParentId string `json:"parentId"` // 父队列Id
|
|
2297
|
+
Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
|
|
2298
|
+
State *string `json:"state"` // 资源池状态
|
|
2299
|
+
DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
|
|
2300
|
+
AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
|
|
2301
|
+
AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
|
|
2302
|
+
MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
|
|
2303
|
+
MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
|
|
2304
|
+
IsDefault *bool `json:"isDefault"`// 是否是root.default队列
|
|
2305
|
+
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
|
2306
|
+
Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
|
|
2307
|
+
}
|
|
2308
|
+
type ConfigForCapacityV3 struct {
|
|
2309
|
+
Name string `json:"configName"` // 配置集名称
|
|
2310
|
+
Labels []CapacityLabel `json:"labels"` // 标签信息
|
|
2311
|
+
MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
|
|
2312
|
+
UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
|
|
2313
|
+
MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
|
|
2314
|
+
MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
|
|
2315
|
+
DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
|
|
2316
|
+
}
|
|
2317
|
+
type CapacityLabel struct {
|
|
2318
|
+
Name string `json:"labelName"`
|
|
2319
|
+
Capacity *float32 `json:"capacity"` // 容量
|
|
2320
|
+
MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
type AclForYarnQueue struct {
|
|
2324
|
+
User *string `json:"user"` //用户名
|
|
2325
|
+
Group *string `json:"group"`//组名
|
|
2326
|
+
}
|
|
2327
|
+
```
|
|
2328
|
+
*/
|
|
2329
|
+
Queue?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* 版本
|
|
2332
|
+
*/
|
|
2333
|
+
Version?: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2336
|
+
*/
|
|
2337
|
+
RequestId?: string;
|
|
2338
|
+
}
|
|
2139
2339
|
/**
|
|
2140
2340
|
* 集群节点拓扑信息
|
|
2141
2341
|
*/
|
|
@@ -2351,41 +2551,21 @@ export interface VPCSettings {
|
|
|
2351
2551
|
SubnetId: string;
|
|
2352
2552
|
}
|
|
2353
2553
|
/**
|
|
2354
|
-
*
|
|
2554
|
+
* DescribeInstancesList返回参数结构体
|
|
2355
2555
|
*/
|
|
2356
|
-
export interface
|
|
2357
|
-
/**
|
|
2358
|
-
* 集群ID
|
|
2359
|
-
*/
|
|
2360
|
-
InstanceId: string;
|
|
2361
|
-
/**
|
|
2362
|
-
* 起始时间秒
|
|
2363
|
-
*/
|
|
2364
|
-
StartTime: number;
|
|
2365
|
-
/**
|
|
2366
|
-
* 结束时间秒,EndTime-StartTime不得超过1天秒数86400
|
|
2367
|
-
*/
|
|
2368
|
-
EndTime: number;
|
|
2369
|
-
/**
|
|
2370
|
-
* 分页起始偏移,从0开始
|
|
2371
|
-
*/
|
|
2372
|
-
Offset: number;
|
|
2373
|
-
/**
|
|
2374
|
-
* 分页大小,合法范围[1,100]
|
|
2375
|
-
*/
|
|
2376
|
-
Limit: number;
|
|
2556
|
+
export interface DescribeInstancesListResponse {
|
|
2377
2557
|
/**
|
|
2378
|
-
*
|
|
2558
|
+
* 符合条件的实例总数。
|
|
2379
2559
|
*/
|
|
2380
|
-
|
|
2560
|
+
TotalCnt?: number;
|
|
2381
2561
|
/**
|
|
2382
|
-
*
|
|
2562
|
+
* 集群实例列表
|
|
2383
2563
|
*/
|
|
2384
|
-
|
|
2564
|
+
InstancesList?: Array<EmrListInstance>;
|
|
2385
2565
|
/**
|
|
2386
|
-
*
|
|
2566
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2387
2567
|
*/
|
|
2388
|
-
|
|
2568
|
+
RequestId?: string;
|
|
2389
2569
|
}
|
|
2390
2570
|
/**
|
|
2391
2571
|
* DescribeInstanceRenewNodes请求参数结构体
|
|
@@ -3419,46 +3599,52 @@ export interface DescribeUsersForUserManagerRequest {
|
|
|
3419
3599
|
NeedKeytabInfo?: boolean;
|
|
3420
3600
|
}
|
|
3421
3601
|
/**
|
|
3422
|
-
*
|
|
3602
|
+
* 资源调度-配置集信息
|
|
3423
3603
|
*/
|
|
3424
|
-
export interface
|
|
3425
|
-
/**
|
|
3426
|
-
* 节点资源ID
|
|
3427
|
-
*/
|
|
3428
|
-
EmrResourceId?: string;
|
|
3429
|
-
/**
|
|
3430
|
-
* 节点类型。0:common节点;1:master节点
|
|
3431
|
-
;2:core节点;3:task节点
|
|
3432
|
-
*/
|
|
3433
|
-
Flag?: number;
|
|
3434
|
-
/**
|
|
3435
|
-
* 内网IP
|
|
3436
|
-
*/
|
|
3437
|
-
Ip?: string;
|
|
3438
|
-
/**
|
|
3439
|
-
* 节点内存描述
|
|
3440
|
-
*/
|
|
3441
|
-
MemDesc?: string;
|
|
3604
|
+
export interface ConfigSetInfo {
|
|
3442
3605
|
/**
|
|
3443
|
-
*
|
|
3444
|
-
|
|
3445
|
-
CpuNum?: number;
|
|
3446
|
-
/**
|
|
3447
|
-
* 硬盘大小
|
|
3448
|
-
*/
|
|
3449
|
-
DiskSize?: string;
|
|
3450
|
-
/**
|
|
3451
|
-
* 过期时间
|
|
3606
|
+
* 配置集名称
|
|
3607
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3452
3608
|
*/
|
|
3453
|
-
|
|
3609
|
+
ConfigSet: string;
|
|
3454
3610
|
/**
|
|
3455
|
-
*
|
|
3611
|
+
* 容量调度器会使用,里面设置了标签相关的配置。key的取值与**DescribeYarnQueue**返回的字段一致。
|
|
3612
|
+
key的取值信息如下:
|
|
3613
|
+
- labelName,标签名称,标签管理里的标签。
|
|
3614
|
+
- capacity,容量,取值为**数字字符串**
|
|
3615
|
+
- maximum-capacity,最大容量,取值为**数字字符串**
|
|
3616
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3456
3617
|
*/
|
|
3457
|
-
|
|
3618
|
+
LabelParams?: Array<ItemSeq>;
|
|
3458
3619
|
/**
|
|
3459
|
-
*
|
|
3620
|
+
* 设置配置集相关的参数。key的取值与**DescribeYarnQueue**返回的字段一致。
|
|
3621
|
+
###### 公平调度器
|
|
3622
|
+
key的取值信息如下:
|
|
3623
|
+
- minResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
|
3624
|
+
- maxResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
|
3625
|
+
- maxChildResources,能够分配给为未声明子队列的最大资源量,取值为**数字字符串**或**null**
|
|
3626
|
+
- maxRunningApps,最高可同时处于运行的App数量,取值为**数字字符串**或**null**
|
|
3627
|
+
- weight,权重,取值为**数字字符串**或**null**
|
|
3628
|
+
- maxAMShare,App Master最大份额,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
|
3629
|
+
|
|
3630
|
+
```
|
|
3631
|
+
type YarnResource struct {
|
|
3632
|
+
Vcores *int `json:"vcores"`
|
|
3633
|
+
Memory *int `json:"memory"`
|
|
3634
|
+
Type *string `json:"type"` // 取值为`percent`或`null`当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值。只有maxResources、maxChildResources才可以取值为`percent`
|
|
3635
|
+
}
|
|
3636
|
+
```
|
|
3637
|
+
|
|
3638
|
+
###### 容量调度器
|
|
3639
|
+
key的取值信息如下:
|
|
3640
|
+
- minimum-user-limit-percent,用户最小容量,取值为**YarnResource类型的json串**或**null**,其中数字的范围是[0,100]
|
|
3641
|
+
- user-limit-factor,用户资源因子,取值为**YarnResource类型的json串**或**null**
|
|
3642
|
+
- maximum-applications,最大应用数Max-Applications,取值为**数字字符串**或**null**,其中数字为正整数
|
|
3643
|
+
- maximum-am-resource-percent,最大AM比例,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
|
3644
|
+
- default-application-priority,资源池优先级,取值为**数字字符串**或**null**,其中数字为正整数
|
|
3645
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3460
3646
|
*/
|
|
3461
|
-
|
|
3647
|
+
BasicParams?: Array<Item>;
|
|
3462
3648
|
}
|
|
3463
3649
|
/**
|
|
3464
3650
|
* DescribeInsightList请求参数结构体
|
|
@@ -3558,148 +3744,33 @@ export interface RunJobFlowResponse {
|
|
|
3558
3744
|
RequestId?: string;
|
|
3559
3745
|
}
|
|
3560
3746
|
/**
|
|
3561
|
-
*
|
|
3747
|
+
* DescribeYarnQueue请求参数结构体
|
|
3562
3748
|
*/
|
|
3563
|
-
export interface
|
|
3749
|
+
export interface DescribeYarnQueueRequest {
|
|
3564
3750
|
/**
|
|
3565
|
-
*
|
|
3751
|
+
* 集群Id
|
|
3566
3752
|
*/
|
|
3567
3753
|
InstanceId: string;
|
|
3568
3754
|
/**
|
|
3569
|
-
*
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
"clusters": [
|
|
3574
|
-
{
|
|
3575
|
-
"cluster": {
|
|
3576
|
-
"certificate-authority-data": "xxxxxx==",
|
|
3577
|
-
"server": "https://xxxxx.com"
|
|
3578
|
-
},
|
|
3579
|
-
"name": "cls-xxxxx"
|
|
3580
|
-
}
|
|
3581
|
-
],
|
|
3582
|
-
"contexts": [
|
|
3583
|
-
{
|
|
3584
|
-
"context": {
|
|
3585
|
-
"cluster": "cls-xxxxx",
|
|
3586
|
-
"user": "100014xxxxx"
|
|
3587
|
-
},
|
|
3588
|
-
"name": "cls-a44yhcxxxxxxxxxx"
|
|
3589
|
-
}
|
|
3590
|
-
],
|
|
3591
|
-
"current-context": "cls-a4xxxx-context-default",
|
|
3592
|
-
"kind": "Config",
|
|
3593
|
-
"preferences": {},
|
|
3594
|
-
"users": [
|
|
3595
|
-
{
|
|
3596
|
-
"name": "100014xxxxx",
|
|
3597
|
-
"user": {
|
|
3598
|
-
"client-certificate-data": "xxxxxx",
|
|
3599
|
-
"client-key-data": "xxxxxx"
|
|
3600
|
-
}
|
|
3601
|
-
}
|
|
3602
|
-
]
|
|
3603
|
-
}
|
|
3604
|
-
*/
|
|
3605
|
-
Config: string;
|
|
3606
|
-
/**
|
|
3607
|
-
* 自定义参数
|
|
3608
|
-
如:
|
|
3609
|
-
{
|
|
3610
|
-
"apiVersion": "apps/v1",
|
|
3611
|
-
"kind": "Deployment",
|
|
3612
|
-
"metadata": {
|
|
3613
|
-
"name": "test-deployment",
|
|
3614
|
-
"labels": {
|
|
3615
|
-
"app": "test"
|
|
3616
|
-
}
|
|
3617
|
-
},
|
|
3618
|
-
"spec": {
|
|
3619
|
-
"replicas": 3,
|
|
3620
|
-
"selector": {
|
|
3621
|
-
"matchLabels": {
|
|
3622
|
-
"app": "test-app"
|
|
3623
|
-
}
|
|
3624
|
-
},
|
|
3625
|
-
"template": {
|
|
3626
|
-
"metadata": {
|
|
3627
|
-
"annotations": {
|
|
3628
|
-
"your-organization.com/department-v1": "test-example-v1",
|
|
3629
|
-
"your-organization.com/department-v2": "test-example-v2"
|
|
3630
|
-
},
|
|
3631
|
-
"labels": {
|
|
3632
|
-
"app": "test-app",
|
|
3633
|
-
"environment": "production"
|
|
3634
|
-
}
|
|
3635
|
-
},
|
|
3636
|
-
"spec": {
|
|
3637
|
-
"nodeSelector": {
|
|
3638
|
-
"your-organization/node-test": "test-node"
|
|
3639
|
-
},
|
|
3640
|
-
"containers": [
|
|
3641
|
-
{
|
|
3642
|
-
"name": "nginx",
|
|
3643
|
-
"image": "nginx:1.14.2",
|
|
3644
|
-
"ports": [
|
|
3645
|
-
{
|
|
3646
|
-
"containerPort": 80
|
|
3647
|
-
}
|
|
3648
|
-
]
|
|
3649
|
-
}
|
|
3650
|
-
],
|
|
3651
|
-
"affinity": {
|
|
3652
|
-
"nodeAffinity": {
|
|
3653
|
-
"requiredDuringSchedulingIgnoredDuringExecution": {
|
|
3654
|
-
"nodeSelectorTerms": [
|
|
3655
|
-
{
|
|
3656
|
-
"matchExpressions": [
|
|
3657
|
-
{
|
|
3658
|
-
"key": "disk-type",
|
|
3659
|
-
"operator": "In",
|
|
3660
|
-
"values": [
|
|
3661
|
-
"ssd",
|
|
3662
|
-
"sas"
|
|
3663
|
-
]
|
|
3664
|
-
},
|
|
3665
|
-
{
|
|
3666
|
-
"key": "cpu-num",
|
|
3667
|
-
"operator": "Gt",
|
|
3668
|
-
"values": [
|
|
3669
|
-
"6"
|
|
3670
|
-
]
|
|
3671
|
-
}
|
|
3672
|
-
]
|
|
3673
|
-
}
|
|
3674
|
-
]
|
|
3675
|
-
}
|
|
3676
|
-
}
|
|
3677
|
-
}
|
|
3678
|
-
}
|
|
3679
|
-
}
|
|
3680
|
-
}
|
|
3681
|
-
}
|
|
3755
|
+
* 调度器,可选值:
|
|
3756
|
+
|
|
3757
|
+
1. capacity
|
|
3758
|
+
2. fair
|
|
3682
3759
|
*/
|
|
3683
|
-
|
|
3760
|
+
Scheduler: string;
|
|
3684
3761
|
}
|
|
3685
3762
|
/**
|
|
3686
|
-
*
|
|
3763
|
+
* DescribeImpalaQueries返回参数结构体
|
|
3687
3764
|
*/
|
|
3688
|
-
export interface
|
|
3689
|
-
/**
|
|
3690
|
-
* 查询到的节点总数
|
|
3691
|
-
*/
|
|
3692
|
-
TotalCnt: number;
|
|
3765
|
+
export interface DescribeImpalaQueriesResponse {
|
|
3693
3766
|
/**
|
|
3694
|
-
*
|
|
3695
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
3767
|
+
* 总数
|
|
3696
3768
|
*/
|
|
3697
|
-
|
|
3769
|
+
Total?: number;
|
|
3698
3770
|
/**
|
|
3699
|
-
*
|
|
3700
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
3771
|
+
* 结果列表
|
|
3701
3772
|
*/
|
|
3702
|
-
|
|
3773
|
+
Results?: Array<ImpalaQuery>;
|
|
3703
3774
|
/**
|
|
3704
3775
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3705
3776
|
*/
|
|
@@ -3757,6 +3828,37 @@ export interface ScaleOutServiceConfGroupsInfo {
|
|
|
3757
3828
|
*/
|
|
3758
3829
|
ConfGroupName?: string;
|
|
3759
3830
|
}
|
|
3831
|
+
/**
|
|
3832
|
+
* 用户管理中用户的简要信息
|
|
3833
|
+
*/
|
|
3834
|
+
export interface UserManagerUserBriefInfo {
|
|
3835
|
+
/**
|
|
3836
|
+
* 用户名
|
|
3837
|
+
*/
|
|
3838
|
+
UserName: string;
|
|
3839
|
+
/**
|
|
3840
|
+
* 用户所属的组
|
|
3841
|
+
*/
|
|
3842
|
+
UserGroup: string;
|
|
3843
|
+
/**
|
|
3844
|
+
* Manager表示管理员、NormalUser表示普通用户
|
|
3845
|
+
*/
|
|
3846
|
+
UserType: string;
|
|
3847
|
+
/**
|
|
3848
|
+
* 用户创建时间
|
|
3849
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3850
|
+
*/
|
|
3851
|
+
CreateTime: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* 是否可以下载用户对应的keytab文件,对开启kerberos的集群才有意义
|
|
3854
|
+
*/
|
|
3855
|
+
SupportDownLoadKeyTab: boolean;
|
|
3856
|
+
/**
|
|
3857
|
+
* keytab文件的下载地址
|
|
3858
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3859
|
+
*/
|
|
3860
|
+
DownLoadKeyTabUrl: string;
|
|
3861
|
+
}
|
|
3760
3862
|
/**
|
|
3761
3863
|
* DescribeYarnScheduleHistory返回参数结构体
|
|
3762
3864
|
*/
|
|
@@ -4040,6 +4142,26 @@ export interface DeleteUserManagerUserListRequest {
|
|
|
4040
4142
|
*/
|
|
4041
4143
|
UserGroupList?: Array<UserAndGroup>;
|
|
4042
4144
|
}
|
|
4145
|
+
/**
|
|
4146
|
+
* Pod的存储设备描述信息。
|
|
4147
|
+
*/
|
|
4148
|
+
export interface PodVolume {
|
|
4149
|
+
/**
|
|
4150
|
+
* 存储类型,可为"pvc","hostpath"。
|
|
4151
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4152
|
+
*/
|
|
4153
|
+
VolumeType: string;
|
|
4154
|
+
/**
|
|
4155
|
+
* 当VolumeType为"pvc"时,该字段生效。
|
|
4156
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4157
|
+
*/
|
|
4158
|
+
PVCVolume?: PersistentVolumeContext;
|
|
4159
|
+
/**
|
|
4160
|
+
* 当VolumeType为"hostpath"时,该字段生效。
|
|
4161
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4162
|
+
*/
|
|
4163
|
+
HostVolume?: HostVolumeContext;
|
|
4164
|
+
}
|
|
4043
4165
|
/**
|
|
4044
4166
|
* 价格详情
|
|
4045
4167
|
*/
|
|
@@ -4068,19 +4190,19 @@ export interface DescribeResourceScheduleResponse {
|
|
|
4068
4190
|
/**
|
|
4069
4191
|
* 资源调度功能是否开启
|
|
4070
4192
|
*/
|
|
4071
|
-
OpenSwitch
|
|
4193
|
+
OpenSwitch?: boolean;
|
|
4072
4194
|
/**
|
|
4073
4195
|
* 正在使用的资源调度器
|
|
4074
4196
|
*/
|
|
4075
|
-
Scheduler
|
|
4197
|
+
Scheduler?: string;
|
|
4076
4198
|
/**
|
|
4077
4199
|
* 公平调度器的信息
|
|
4078
4200
|
*/
|
|
4079
|
-
FSInfo
|
|
4201
|
+
FSInfo?: string;
|
|
4080
4202
|
/**
|
|
4081
4203
|
* 容量调度器的信息
|
|
4082
4204
|
*/
|
|
4083
|
-
CSInfo
|
|
4205
|
+
CSInfo?: string;
|
|
4084
4206
|
/**
|
|
4085
4207
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4086
4208
|
*/
|
|
@@ -4513,6 +4635,82 @@ export interface DeleteAutoScaleStrategyResponse {
|
|
|
4513
4635
|
*/
|
|
4514
4636
|
RequestId?: string;
|
|
4515
4637
|
}
|
|
4638
|
+
/**
|
|
4639
|
+
* 任务步骤详情
|
|
4640
|
+
*/
|
|
4641
|
+
export interface StageInfoDetail {
|
|
4642
|
+
/**
|
|
4643
|
+
* 步骤id
|
|
4644
|
+
*/
|
|
4645
|
+
Stage?: string;
|
|
4646
|
+
/**
|
|
4647
|
+
* 步骤名
|
|
4648
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4649
|
+
*/
|
|
4650
|
+
Name?: string;
|
|
4651
|
+
/**
|
|
4652
|
+
* 是否展示
|
|
4653
|
+
*/
|
|
4654
|
+
IsShow?: boolean;
|
|
4655
|
+
/**
|
|
4656
|
+
* 是否子流程
|
|
4657
|
+
*/
|
|
4658
|
+
IsSubFlow?: boolean;
|
|
4659
|
+
/**
|
|
4660
|
+
* 子流程标签
|
|
4661
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4662
|
+
*/
|
|
4663
|
+
SubFlowFlag?: string;
|
|
4664
|
+
/**
|
|
4665
|
+
* 步骤运行状态:0:未开始 1:进行中 2:已完成 3:部分完成 -1:失败
|
|
4666
|
+
*/
|
|
4667
|
+
Status?: number;
|
|
4668
|
+
/**
|
|
4669
|
+
* 步骤运行状态描述
|
|
4670
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4671
|
+
*/
|
|
4672
|
+
Desc?: string;
|
|
4673
|
+
/**
|
|
4674
|
+
* 运行进度
|
|
4675
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4676
|
+
*/
|
|
4677
|
+
Progress?: number;
|
|
4678
|
+
/**
|
|
4679
|
+
* 开始时间
|
|
4680
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4681
|
+
*/
|
|
4682
|
+
Starttime?: string;
|
|
4683
|
+
/**
|
|
4684
|
+
* 结束时间
|
|
4685
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4686
|
+
*/
|
|
4687
|
+
Endtime?: string;
|
|
4688
|
+
/**
|
|
4689
|
+
* 是否有详情信息
|
|
4690
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4691
|
+
*/
|
|
4692
|
+
HadWoodDetail?: boolean;
|
|
4693
|
+
/**
|
|
4694
|
+
* Wood子流程Id
|
|
4695
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4696
|
+
*/
|
|
4697
|
+
WoodJobId?: number;
|
|
4698
|
+
/**
|
|
4699
|
+
* 多语言版本Key
|
|
4700
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4701
|
+
*/
|
|
4702
|
+
LanguageKey?: string;
|
|
4703
|
+
/**
|
|
4704
|
+
* 如果stage失败,失败原因
|
|
4705
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4706
|
+
*/
|
|
4707
|
+
FailedReason?: string;
|
|
4708
|
+
/**
|
|
4709
|
+
* 步骤耗时
|
|
4710
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4711
|
+
*/
|
|
4712
|
+
TimeConsuming?: string;
|
|
4713
|
+
}
|
|
4516
4714
|
/**
|
|
4517
4715
|
* CreateCluster返回参数结构体
|
|
4518
4716
|
*/
|
|
@@ -4878,6 +5076,26 @@ export interface DescribeClusterNodesRequest {
|
|
|
4878
5076
|
*/
|
|
4879
5077
|
Asc?: number;
|
|
4880
5078
|
}
|
|
5079
|
+
/**
|
|
5080
|
+
* ModifyYarnQueueV2请求参数结构体
|
|
5081
|
+
*/
|
|
5082
|
+
export interface ModifyYarnQueueV2Request {
|
|
5083
|
+
/**
|
|
5084
|
+
* 集群Id
|
|
5085
|
+
*/
|
|
5086
|
+
InstanceId: string;
|
|
5087
|
+
/**
|
|
5088
|
+
* 调度器类型。可选值:
|
|
5089
|
+
|
|
5090
|
+
1. capacity
|
|
5091
|
+
2. fair
|
|
5092
|
+
*/
|
|
5093
|
+
Scheduler: string;
|
|
5094
|
+
/**
|
|
5095
|
+
* 资源池数据
|
|
5096
|
+
*/
|
|
5097
|
+
ConfigModifyInfoList: Array<ConfigModifyInfoV2>;
|
|
5098
|
+
}
|
|
4881
5099
|
/**
|
|
4882
5100
|
* DescribeCvmQuota请求参数结构体
|
|
4883
5101
|
*/
|
|
@@ -5379,6 +5597,15 @@ export interface DescribeAutoScaleStrategiesRequest {
|
|
|
5379
5597
|
*/
|
|
5380
5598
|
GroupId?: number;
|
|
5381
5599
|
}
|
|
5600
|
+
/**
|
|
5601
|
+
* DeployYarnConf请求参数结构体
|
|
5602
|
+
*/
|
|
5603
|
+
export interface DeployYarnConfRequest {
|
|
5604
|
+
/**
|
|
5605
|
+
* emr集群的英文id
|
|
5606
|
+
*/
|
|
5607
|
+
InstanceId: string;
|
|
5608
|
+
}
|
|
5382
5609
|
/**
|
|
5383
5610
|
* TerminateClusterNodes请求参数结构体
|
|
5384
5611
|
*/
|
|
@@ -5440,6 +5667,16 @@ export interface DescribeInstancesListRequest {
|
|
|
5440
5667
|
*/
|
|
5441
5668
|
Filters?: Array<Filters>;
|
|
5442
5669
|
}
|
|
5670
|
+
/**
|
|
5671
|
+
* 键值对组成的列表
|
|
5672
|
+
*/
|
|
5673
|
+
export interface ItemSeq {
|
|
5674
|
+
/**
|
|
5675
|
+
* 标签名称
|
|
5676
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5677
|
+
*/
|
|
5678
|
+
Items: Array<Item>;
|
|
5679
|
+
}
|
|
5443
5680
|
/**
|
|
5444
5681
|
* 定时伸缩任务策略
|
|
5445
5682
|
*/
|
|
@@ -5474,6 +5711,48 @@ export interface RepeatStrategy {
|
|
|
5474
5711
|
*/
|
|
5475
5712
|
Expire?: string;
|
|
5476
5713
|
}
|
|
5714
|
+
/**
|
|
5715
|
+
* 集群续费实例信息
|
|
5716
|
+
*/
|
|
5717
|
+
export interface RenewInstancesInfo {
|
|
5718
|
+
/**
|
|
5719
|
+
* 节点资源ID
|
|
5720
|
+
*/
|
|
5721
|
+
EmrResourceId?: string;
|
|
5722
|
+
/**
|
|
5723
|
+
* 节点类型。0:common节点;1:master节点
|
|
5724
|
+
;2:core节点;3:task节点
|
|
5725
|
+
*/
|
|
5726
|
+
Flag?: number;
|
|
5727
|
+
/**
|
|
5728
|
+
* 内网IP
|
|
5729
|
+
*/
|
|
5730
|
+
Ip?: string;
|
|
5731
|
+
/**
|
|
5732
|
+
* 节点内存描述
|
|
5733
|
+
*/
|
|
5734
|
+
MemDesc?: string;
|
|
5735
|
+
/**
|
|
5736
|
+
* 节点核数
|
|
5737
|
+
*/
|
|
5738
|
+
CpuNum?: number;
|
|
5739
|
+
/**
|
|
5740
|
+
* 硬盘大小
|
|
5741
|
+
*/
|
|
5742
|
+
DiskSize?: string;
|
|
5743
|
+
/**
|
|
5744
|
+
* 过期时间
|
|
5745
|
+
*/
|
|
5746
|
+
ExpireTime?: string;
|
|
5747
|
+
/**
|
|
5748
|
+
* 节点规格
|
|
5749
|
+
*/
|
|
5750
|
+
Spec?: string;
|
|
5751
|
+
/**
|
|
5752
|
+
* 磁盘类型
|
|
5753
|
+
*/
|
|
5754
|
+
StorageType?: number;
|
|
5755
|
+
}
|
|
5477
5756
|
/**
|
|
5478
5757
|
* 资源详情
|
|
5479
5758
|
*/
|
|
@@ -5556,17 +5835,13 @@ export interface DeleteAutoScaleStrategyRequest {
|
|
|
5556
5835
|
GroupId?: number;
|
|
5557
5836
|
}
|
|
5558
5837
|
/**
|
|
5559
|
-
*
|
|
5838
|
+
* DeployYarnConf返回参数结构体
|
|
5560
5839
|
*/
|
|
5561
|
-
export interface
|
|
5840
|
+
export interface DeployYarnConfResponse {
|
|
5562
5841
|
/**
|
|
5563
|
-
*
|
|
5564
|
-
*/
|
|
5565
|
-
TotalCnt?: number;
|
|
5566
|
-
/**
|
|
5567
|
-
* 集群实例列表
|
|
5842
|
+
* 启动流程后的流程ID,可以使用[DescribeClusterFlowStatusDetail](https://cloud.tencent.com/document/product/589/107224)接口来获取流程状态
|
|
5568
5843
|
*/
|
|
5569
|
-
|
|
5844
|
+
FlowId?: number;
|
|
5570
5845
|
/**
|
|
5571
5846
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5572
5847
|
*/
|
|
@@ -5588,12 +5863,12 @@ export interface ModifyResourcePoolsResponse {
|
|
|
5588
5863
|
/**
|
|
5589
5864
|
* false表示不是草稿,提交刷新请求成功
|
|
5590
5865
|
*/
|
|
5591
|
-
IsDraft
|
|
5866
|
+
IsDraft?: boolean;
|
|
5592
5867
|
/**
|
|
5593
5868
|
* 扩展字段,暂时没用
|
|
5594
5869
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5595
5870
|
*/
|
|
5596
|
-
ErrorMsg
|
|
5871
|
+
ErrorMsg?: string;
|
|
5597
5872
|
/**
|
|
5598
5873
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5599
5874
|
*/
|
|
@@ -6129,6 +6404,131 @@ export interface UserInfoForUserManager {
|
|
|
6129
6404
|
*/
|
|
6130
6405
|
ReMark?: string;
|
|
6131
6406
|
}
|
|
6407
|
+
/**
|
|
6408
|
+
* POD自定义权限和自定义参数
|
|
6409
|
+
*/
|
|
6410
|
+
export interface PodNewParameter {
|
|
6411
|
+
/**
|
|
6412
|
+
* TKE或EKS集群ID
|
|
6413
|
+
*/
|
|
6414
|
+
InstanceId: string;
|
|
6415
|
+
/**
|
|
6416
|
+
* 自定义权限
|
|
6417
|
+
如:
|
|
6418
|
+
{
|
|
6419
|
+
"apiVersion": "v1",
|
|
6420
|
+
"clusters": [
|
|
6421
|
+
{
|
|
6422
|
+
"cluster": {
|
|
6423
|
+
"certificate-authority-data": "xxxxxx==",
|
|
6424
|
+
"server": "https://xxxxx.com"
|
|
6425
|
+
},
|
|
6426
|
+
"name": "cls-xxxxx"
|
|
6427
|
+
}
|
|
6428
|
+
],
|
|
6429
|
+
"contexts": [
|
|
6430
|
+
{
|
|
6431
|
+
"context": {
|
|
6432
|
+
"cluster": "cls-xxxxx",
|
|
6433
|
+
"user": "100014xxxxx"
|
|
6434
|
+
},
|
|
6435
|
+
"name": "cls-a44yhcxxxxxxxxxx"
|
|
6436
|
+
}
|
|
6437
|
+
],
|
|
6438
|
+
"current-context": "cls-a4xxxx-context-default",
|
|
6439
|
+
"kind": "Config",
|
|
6440
|
+
"preferences": {},
|
|
6441
|
+
"users": [
|
|
6442
|
+
{
|
|
6443
|
+
"name": "100014xxxxx",
|
|
6444
|
+
"user": {
|
|
6445
|
+
"client-certificate-data": "xxxxxx",
|
|
6446
|
+
"client-key-data": "xxxxxx"
|
|
6447
|
+
}
|
|
6448
|
+
}
|
|
6449
|
+
]
|
|
6450
|
+
}
|
|
6451
|
+
*/
|
|
6452
|
+
Config: string;
|
|
6453
|
+
/**
|
|
6454
|
+
* 自定义参数
|
|
6455
|
+
如:
|
|
6456
|
+
{
|
|
6457
|
+
"apiVersion": "apps/v1",
|
|
6458
|
+
"kind": "Deployment",
|
|
6459
|
+
"metadata": {
|
|
6460
|
+
"name": "test-deployment",
|
|
6461
|
+
"labels": {
|
|
6462
|
+
"app": "test"
|
|
6463
|
+
}
|
|
6464
|
+
},
|
|
6465
|
+
"spec": {
|
|
6466
|
+
"replicas": 3,
|
|
6467
|
+
"selector": {
|
|
6468
|
+
"matchLabels": {
|
|
6469
|
+
"app": "test-app"
|
|
6470
|
+
}
|
|
6471
|
+
},
|
|
6472
|
+
"template": {
|
|
6473
|
+
"metadata": {
|
|
6474
|
+
"annotations": {
|
|
6475
|
+
"your-organization.com/department-v1": "test-example-v1",
|
|
6476
|
+
"your-organization.com/department-v2": "test-example-v2"
|
|
6477
|
+
},
|
|
6478
|
+
"labels": {
|
|
6479
|
+
"app": "test-app",
|
|
6480
|
+
"environment": "production"
|
|
6481
|
+
}
|
|
6482
|
+
},
|
|
6483
|
+
"spec": {
|
|
6484
|
+
"nodeSelector": {
|
|
6485
|
+
"your-organization/node-test": "test-node"
|
|
6486
|
+
},
|
|
6487
|
+
"containers": [
|
|
6488
|
+
{
|
|
6489
|
+
"name": "nginx",
|
|
6490
|
+
"image": "nginx:1.14.2",
|
|
6491
|
+
"ports": [
|
|
6492
|
+
{
|
|
6493
|
+
"containerPort": 80
|
|
6494
|
+
}
|
|
6495
|
+
]
|
|
6496
|
+
}
|
|
6497
|
+
],
|
|
6498
|
+
"affinity": {
|
|
6499
|
+
"nodeAffinity": {
|
|
6500
|
+
"requiredDuringSchedulingIgnoredDuringExecution": {
|
|
6501
|
+
"nodeSelectorTerms": [
|
|
6502
|
+
{
|
|
6503
|
+
"matchExpressions": [
|
|
6504
|
+
{
|
|
6505
|
+
"key": "disk-type",
|
|
6506
|
+
"operator": "In",
|
|
6507
|
+
"values": [
|
|
6508
|
+
"ssd",
|
|
6509
|
+
"sas"
|
|
6510
|
+
]
|
|
6511
|
+
},
|
|
6512
|
+
{
|
|
6513
|
+
"key": "cpu-num",
|
|
6514
|
+
"operator": "Gt",
|
|
6515
|
+
"values": [
|
|
6516
|
+
"6"
|
|
6517
|
+
]
|
|
6518
|
+
}
|
|
6519
|
+
]
|
|
6520
|
+
}
|
|
6521
|
+
]
|
|
6522
|
+
}
|
|
6523
|
+
}
|
|
6524
|
+
}
|
|
6525
|
+
}
|
|
6526
|
+
}
|
|
6527
|
+
}
|
|
6528
|
+
}
|
|
6529
|
+
*/
|
|
6530
|
+
Parameter: string;
|
|
6531
|
+
}
|
|
6132
6532
|
/**
|
|
6133
6533
|
* DescribeEmrOverviewMetrics请求参数结构体
|
|
6134
6534
|
*/
|
|
@@ -6344,61 +6744,13 @@ export interface RestartPolicy {
|
|
|
6344
6744
|
IsDefault: string;
|
|
6345
6745
|
}
|
|
6346
6746
|
/**
|
|
6347
|
-
*
|
|
6747
|
+
* ModifyYarnQueueV2返回参数结构体
|
|
6348
6748
|
*/
|
|
6349
|
-
export interface
|
|
6350
|
-
/**
|
|
6351
|
-
* 脚本在COS上路径,已废弃
|
|
6352
|
-
*/
|
|
6353
|
-
Path?: string;
|
|
6354
|
-
/**
|
|
6355
|
-
* 执行脚本参数
|
|
6356
|
-
*/
|
|
6357
|
-
Args?: Array<string>;
|
|
6358
|
-
/**
|
|
6359
|
-
* COS的Bucket名称,已废弃
|
|
6360
|
-
*/
|
|
6361
|
-
Bucket?: string;
|
|
6362
|
-
/**
|
|
6363
|
-
* COS的Region名称,已废弃
|
|
6364
|
-
*/
|
|
6365
|
-
Region?: string;
|
|
6366
|
-
/**
|
|
6367
|
-
* COS的Domain数据,已废弃
|
|
6368
|
-
*/
|
|
6369
|
-
Domain?: string;
|
|
6370
|
-
/**
|
|
6371
|
-
* 执行顺序
|
|
6372
|
-
*/
|
|
6373
|
-
RunOrder?: number;
|
|
6374
|
-
/**
|
|
6375
|
-
* resourceAfter 或 clusterAfter
|
|
6376
|
-
*/
|
|
6377
|
-
WhenRun?: string;
|
|
6378
|
-
/**
|
|
6379
|
-
* 脚本文件名,已废弃
|
|
6380
|
-
*/
|
|
6381
|
-
CosFileName?: string;
|
|
6749
|
+
export interface ModifyYarnQueueV2Response {
|
|
6382
6750
|
/**
|
|
6383
|
-
*
|
|
6384
|
-
*/
|
|
6385
|
-
CosFileURI?: string;
|
|
6386
|
-
/**
|
|
6387
|
-
* cos的SecretId
|
|
6388
|
-
*/
|
|
6389
|
-
CosSecretId?: string;
|
|
6390
|
-
/**
|
|
6391
|
-
* Cos的SecretKey
|
|
6392
|
-
*/
|
|
6393
|
-
CosSecretKey?: string;
|
|
6394
|
-
/**
|
|
6395
|
-
* cos的appid,已废弃
|
|
6396
|
-
*/
|
|
6397
|
-
AppId?: string;
|
|
6398
|
-
/**
|
|
6399
|
-
* 备注
|
|
6751
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6400
6752
|
*/
|
|
6401
|
-
|
|
6753
|
+
RequestId?: string;
|
|
6402
6754
|
}
|
|
6403
6755
|
/**
|
|
6404
6756
|
* 当前集群共用组件与集群对应关系
|
|
@@ -6511,6 +6863,15 @@ export interface InquiryPriceScaleOutInstanceRequest {
|
|
|
6511
6863
|
*/
|
|
6512
6864
|
HardwareResourceType?: string;
|
|
6513
6865
|
}
|
|
6866
|
+
/**
|
|
6867
|
+
* ResetYarnConfig返回参数结构体
|
|
6868
|
+
*/
|
|
6869
|
+
export interface ResetYarnConfigResponse {
|
|
6870
|
+
/**
|
|
6871
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6872
|
+
*/
|
|
6873
|
+
RequestId?: string;
|
|
6874
|
+
}
|
|
6514
6875
|
/**
|
|
6515
6876
|
* 负载指标
|
|
6516
6877
|
*/
|
|
@@ -6670,17 +7031,23 @@ export interface LoadMetricsCondition {
|
|
|
6670
7031
|
Conditions?: Array<TriggerCondition>;
|
|
6671
7032
|
}
|
|
6672
7033
|
/**
|
|
6673
|
-
*
|
|
7034
|
+
* DescribeInstanceRenewNodes返回参数结构体
|
|
6674
7035
|
*/
|
|
6675
|
-
export interface
|
|
7036
|
+
export interface DescribeInstanceRenewNodesResponse {
|
|
6676
7037
|
/**
|
|
6677
|
-
*
|
|
7038
|
+
* 查询到的节点总数
|
|
6678
7039
|
*/
|
|
6679
|
-
|
|
7040
|
+
TotalCnt: number;
|
|
6680
7041
|
/**
|
|
6681
|
-
*
|
|
7042
|
+
* 节点详细信息列表
|
|
7043
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6682
7044
|
*/
|
|
6683
|
-
|
|
7045
|
+
NodeList: Array<RenewInstancesInfo>;
|
|
7046
|
+
/**
|
|
7047
|
+
* 用户所有的标签键列表
|
|
7048
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7049
|
+
*/
|
|
7050
|
+
MetaInfo: Array<string>;
|
|
6684
7051
|
/**
|
|
6685
7052
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6686
7053
|
*/
|
|
@@ -6715,35 +7082,19 @@ export interface CustomMetaDBInfo {
|
|
|
6715
7082
|
UnifyMetaInstanceId?: string;
|
|
6716
7083
|
}
|
|
6717
7084
|
/**
|
|
6718
|
-
*
|
|
7085
|
+
* 代表一个kv结构
|
|
6719
7086
|
*/
|
|
6720
|
-
export interface
|
|
6721
|
-
/**
|
|
6722
|
-
* 用户名
|
|
6723
|
-
*/
|
|
6724
|
-
UserName: string;
|
|
6725
|
-
/**
|
|
6726
|
-
* 用户所属的组
|
|
6727
|
-
*/
|
|
6728
|
-
UserGroup: string;
|
|
6729
|
-
/**
|
|
6730
|
-
* Manager表示管理员、NormalUser表示普通用户
|
|
6731
|
-
*/
|
|
6732
|
-
UserType: string;
|
|
7087
|
+
export interface Item {
|
|
6733
7088
|
/**
|
|
6734
|
-
*
|
|
7089
|
+
* 健值
|
|
6735
7090
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6736
7091
|
*/
|
|
6737
|
-
|
|
6738
|
-
/**
|
|
6739
|
-
* 是否可以下载用户对应的keytab文件,对开启kerberos的集群才有意义
|
|
6740
|
-
*/
|
|
6741
|
-
SupportDownLoadKeyTab: boolean;
|
|
7092
|
+
Key: string;
|
|
6742
7093
|
/**
|
|
6743
|
-
*
|
|
7094
|
+
* 值
|
|
6744
7095
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6745
7096
|
*/
|
|
6746
|
-
|
|
7097
|
+
Value: string;
|
|
6747
7098
|
}
|
|
6748
7099
|
/**
|
|
6749
7100
|
* 表格schema信息
|
|
@@ -6778,80 +7129,83 @@ export interface TableSchemaItem {
|
|
|
6778
7129
|
Title: string;
|
|
6779
7130
|
}
|
|
6780
7131
|
/**
|
|
6781
|
-
*
|
|
7132
|
+
* 资源调度 - 队列修改信息
|
|
6782
7133
|
*/
|
|
6783
|
-
export interface
|
|
6784
|
-
/**
|
|
6785
|
-
* 步骤id
|
|
6786
|
-
*/
|
|
6787
|
-
Stage?: string;
|
|
7134
|
+
export interface ConfigModifyInfoV2 {
|
|
6788
7135
|
/**
|
|
6789
|
-
*
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
/**
|
|
6798
|
-
* 是否子流程
|
|
6799
|
-
*/
|
|
6800
|
-
IsSubFlow?: boolean;
|
|
6801
|
-
/**
|
|
6802
|
-
* 子流程标签
|
|
6803
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6804
|
-
*/
|
|
6805
|
-
SubFlowFlag?: string;
|
|
6806
|
-
/**
|
|
6807
|
-
* 步骤运行状态:0:未开始 1:进行中 2:已完成 3:部分完成 -1:失败
|
|
6808
|
-
*/
|
|
6809
|
-
Status?: number;
|
|
6810
|
-
/**
|
|
6811
|
-
* 步骤运行状态描述
|
|
6812
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6813
|
-
*/
|
|
6814
|
-
Desc?: string;
|
|
6815
|
-
/**
|
|
6816
|
-
* 运行进度
|
|
6817
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6818
|
-
*/
|
|
6819
|
-
Progress?: number;
|
|
6820
|
-
/**
|
|
6821
|
-
* 开始时间
|
|
7136
|
+
* 操作类型,可选值:
|
|
7137
|
+
|
|
7138
|
+
- 0:新建队列
|
|
7139
|
+
- 1:编辑-全量覆盖
|
|
7140
|
+
- 2:新建子队列
|
|
7141
|
+
- 3:删除
|
|
7142
|
+
- 4:克隆,与新建子队列的行为一样,特别的对于`fair`,可以复制子队列到新建队列
|
|
7143
|
+
- 6:编辑-增量更新
|
|
6822
7144
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6823
7145
|
*/
|
|
6824
|
-
|
|
7146
|
+
OpType: number;
|
|
6825
7147
|
/**
|
|
6826
|
-
*
|
|
6827
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
7148
|
+
* 队列名称,不支持修改。
|
|
6828
7149
|
*/
|
|
6829
|
-
|
|
7150
|
+
Name?: string;
|
|
6830
7151
|
/**
|
|
6831
|
-
*
|
|
7152
|
+
* 新建队列 传root的MyId;新建子队列 传 选中队列的 myId;克隆 要传 选中队列 parentId
|
|
6832
7153
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6833
7154
|
*/
|
|
6834
|
-
|
|
7155
|
+
ParentId?: string;
|
|
6835
7156
|
/**
|
|
6836
|
-
*
|
|
7157
|
+
* 编辑、删除 传选中队列的 myId。克隆只有在调度器是`fair`时才需要传,用来复制子队列到新队列。
|
|
6837
7158
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6838
7159
|
*/
|
|
6839
|
-
|
|
7160
|
+
MyId?: string;
|
|
6840
7161
|
/**
|
|
6841
|
-
*
|
|
7162
|
+
* 基础配置信息。key的取值与**DescribeYarnQueue**返回的字段一致。
|
|
7163
|
+
###### 公平调度器
|
|
7164
|
+
key的取值信息如下:
|
|
7165
|
+
|
|
7166
|
+
- type,父队列,取值为 **parent** 或 **null**
|
|
7167
|
+
- aclSubmitApps,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7168
|
+
- aclAdministerApps,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7169
|
+
- minSharePreemptionTimeout,最小共享优先权超时时间,取值为**数字字符串**或**null**
|
|
7170
|
+
- fairSharePreemptionTimeout,公平份额抢占超时时间,取值为**数字字符串**或**null**
|
|
7171
|
+
- fairSharePreemptionThreshold,公平份额抢占阈值,取值为**数字字符串**或**null**,其中数字的范围是(0,1]
|
|
7172
|
+
- allowPreemptionFrom,抢占模式,取值为**布尔字符串**或**null**
|
|
7173
|
+
- schedulingPolicy,调度策略,取值为**drf**、**fair**、**fifo**或**null**
|
|
7174
|
+
|
|
7175
|
+
```
|
|
7176
|
+
type AclForYarnQueue struct {
|
|
7177
|
+
User *string `json:"user"` //用户名
|
|
7178
|
+
Group *string `json:"group"`//组名
|
|
7179
|
+
}
|
|
7180
|
+
```
|
|
7181
|
+
###### 容量调度器
|
|
7182
|
+
key的取值信息如下:
|
|
7183
|
+
|
|
7184
|
+
- state,队列状态,取值为**STOPPED**或**RUNNING**
|
|
7185
|
+
- default-node-label-expression,默认标签表达式,取值为**标签**或**null**
|
|
7186
|
+
- acl_submit_applications,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7187
|
+
- acl_administer_queue,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
|
7188
|
+
- maximum-allocation-mb,分配Container最大内存数量,取值为**数字字符串**或**null**
|
|
7189
|
+
- maximum-allocation-vcores,Container最大vCore数量,取值为**数字字符串**或**null**
|
|
7190
|
+
```
|
|
7191
|
+
type AclForYarnQueue struct {
|
|
7192
|
+
User *string `json:"user"` //用户名
|
|
7193
|
+
Group *string `json:"group"`//组名
|
|
7194
|
+
}
|
|
7195
|
+
```
|
|
6842
7196
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6843
7197
|
*/
|
|
6844
|
-
|
|
7198
|
+
BasicParams?: ItemSeq;
|
|
6845
7199
|
/**
|
|
6846
|
-
*
|
|
7200
|
+
* 配置集信息,取值见该复杂类型的参数说明。配置集是计划模式在队列中表现,表示的是不同时间段不同的配置值,所有队列的配置集名称都一样,对于单个队列,每个配置集中的标签与参数都一样,只是参数值不同。
|
|
6847
7201
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6848
7202
|
*/
|
|
6849
|
-
|
|
7203
|
+
ConfigSetParams?: Array<ConfigSetInfo>;
|
|
6850
7204
|
/**
|
|
6851
|
-
*
|
|
7205
|
+
* 容量调度专用,`OpType`为`6`时才生效,表示要删除这个队列中的哪些标签。优先级高于ConfigSetParams中的LabelParams。
|
|
6852
7206
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6853
7207
|
*/
|
|
6854
|
-
|
|
7208
|
+
DeleteLables?: Array<string>;
|
|
6855
7209
|
}
|
|
6856
7210
|
/**
|
|
6857
7211
|
* InquiryPriceScaleOutInstance返回参数结构体
|