tencentcloud-sdk-python 3.0.1226__py2.py3-none-any.whl → 3.0.1227__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/cfw/v20190904/cfw_client.py +0 -25
- tencentcloud/cfw/v20190904/models.py +0 -31
- tencentcloud/cwp/v20180228/models.py +1 -1
- tencentcloud/emr/v20190103/emr_client.py +98 -6
- tencentcloud/emr/v20190103/models.py +765 -0
- tencentcloud/ess/v20201111/ess_client.py +15 -3
- tencentcloud/ess/v20201111/models.py +42 -48
- tencentcloud/gme/v20180711/models.py +2 -2
- tencentcloud/teo/v20220901/models.py +6 -4
- tencentcloud/trocket/v20230308/models.py +12 -0
- tencentcloud/vclm/v20240523/models.py +17 -4
- tencentcloud/vclm/v20240523/vclm_client.py +53 -1
- tencentcloud/vtc/v20240223/models.py +18 -4
- tencentcloud/vtc/v20240223/vtc_client.py +53 -1
- {tencentcloud_sdk_python-3.0.1226.dist-info → tencentcloud_sdk_python-3.0.1227.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1226.dist-info → tencentcloud_sdk_python-3.0.1227.dist-info}/RECORD +20 -20
- {tencentcloud_sdk_python-3.0.1226.dist-info → tencentcloud_sdk_python-3.0.1227.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1226.dist-info → tencentcloud_sdk_python-3.0.1227.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1226.dist-info → tencentcloud_sdk_python-3.0.1227.dist-info}/top_level.txt +0 -0
@@ -2296,6 +2296,262 @@ class ComponentBasicRestartInfo(AbstractModel):
|
|
2296
2296
|
|
2297
2297
|
|
2298
2298
|
|
2299
|
+
class ConfigModifyInfoV2(AbstractModel):
|
2300
|
+
"""资源调度 - 队列修改信息
|
2301
|
+
|
2302
|
+
"""
|
2303
|
+
|
2304
|
+
def __init__(self):
|
2305
|
+
r"""
|
2306
|
+
:param _OpType: 操作类型,可选值:
|
2307
|
+
|
2308
|
+
- 0:新建队列
|
2309
|
+
- 1:编辑-全量覆盖
|
2310
|
+
- 2:新建子队列
|
2311
|
+
- 3:删除
|
2312
|
+
- 4:克隆,与新建子队列的行为一样,特别的对于`fair`,可以复制子队列到新建队列
|
2313
|
+
- 6:编辑-增量更新
|
2314
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2315
|
+
:type OpType: int
|
2316
|
+
:param _Name: 队列名称,不支持修改。
|
2317
|
+
:type Name: str
|
2318
|
+
:param _ParentId: 新建队列 传root的MyId;新建子队列 传 选中队列的 myId;克隆 要传 选中队列 parentId
|
2319
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2320
|
+
:type ParentId: str
|
2321
|
+
:param _MyId: 编辑、删除 传选中队列的 myId。克隆只有在调度器是`fair`时才需要传,用来复制子队列到新队列。
|
2322
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2323
|
+
:type MyId: str
|
2324
|
+
:param _BasicParams: 基础配置信息。key的取值与**DescribeYarnQueue**返回的字段一致。
|
2325
|
+
###### 公平调度器
|
2326
|
+
key的取值信息如下:
|
2327
|
+
|
2328
|
+
- type,父队列,取值为 **parent** 或 **null**
|
2329
|
+
- aclSubmitApps,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
2330
|
+
- aclAdministerApps,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
2331
|
+
- minSharePreemptionTimeout,最小共享优先权超时时间,取值为**数字字符串**或**null**
|
2332
|
+
- fairSharePreemptionTimeout,公平份额抢占超时时间,取值为**数字字符串**或**null**
|
2333
|
+
- fairSharePreemptionThreshold,公平份额抢占阈值,取值为**数字字符串**或**null**,其中数字的范围是(0,1]
|
2334
|
+
- allowPreemptionFrom,抢占模式,取值为**布尔字符串**或**null**
|
2335
|
+
- schedulingPolicy,调度策略,取值为**drf**、**fair**、**fifo**或**null**
|
2336
|
+
|
2337
|
+
```
|
2338
|
+
type AclForYarnQueue struct {
|
2339
|
+
User *string `json:"user"` //用户名
|
2340
|
+
Group *string `json:"group"`//组名
|
2341
|
+
}
|
2342
|
+
```
|
2343
|
+
###### 容量调度器
|
2344
|
+
key的取值信息如下:
|
2345
|
+
|
2346
|
+
- state,队列状态,取值为**STOPPED**或**RUNNING**
|
2347
|
+
- default-node-label-expression,默认标签表达式,取值为**标签**或**null**
|
2348
|
+
- acl_submit_applications,提交访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
2349
|
+
- acl_administer_queue,管理访问控制,取值为**AclForYarnQueue类型的json串**或**null**
|
2350
|
+
- maximum-allocation-mb,分配Container最大内存数量,取值为**数字字符串**或**null**
|
2351
|
+
- maximum-allocation-vcores,Container最大vCore数量,取值为**数字字符串**或**null**
|
2352
|
+
```
|
2353
|
+
type AclForYarnQueue struct {
|
2354
|
+
User *string `json:"user"` //用户名
|
2355
|
+
Group *string `json:"group"`//组名
|
2356
|
+
}
|
2357
|
+
```
|
2358
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2359
|
+
:type BasicParams: :class:`tencentcloud.emr.v20190103.models.ItemSeq`
|
2360
|
+
:param _ConfigSetParams: 配置集信息,取值见该复杂类型的参数说明。配置集是计划模式在队列中表现,表示的是不同时间段不同的配置值,所有队列的配置集名称都一样,对于单个队列,每个配置集中的标签与参数都一样,只是参数值不同。
|
2361
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2362
|
+
:type ConfigSetParams: list of ConfigSetInfo
|
2363
|
+
:param _DeleteLables: 容量调度专用,`OpType`为`6`时才生效,表示要删除这个队列中的哪些标签。优先级高于ConfigSetParams中的LabelParams。
|
2364
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2365
|
+
:type DeleteLables: list of str
|
2366
|
+
"""
|
2367
|
+
self._OpType = None
|
2368
|
+
self._Name = None
|
2369
|
+
self._ParentId = None
|
2370
|
+
self._MyId = None
|
2371
|
+
self._BasicParams = None
|
2372
|
+
self._ConfigSetParams = None
|
2373
|
+
self._DeleteLables = None
|
2374
|
+
|
2375
|
+
@property
|
2376
|
+
def OpType(self):
|
2377
|
+
return self._OpType
|
2378
|
+
|
2379
|
+
@OpType.setter
|
2380
|
+
def OpType(self, OpType):
|
2381
|
+
self._OpType = OpType
|
2382
|
+
|
2383
|
+
@property
|
2384
|
+
def Name(self):
|
2385
|
+
return self._Name
|
2386
|
+
|
2387
|
+
@Name.setter
|
2388
|
+
def Name(self, Name):
|
2389
|
+
self._Name = Name
|
2390
|
+
|
2391
|
+
@property
|
2392
|
+
def ParentId(self):
|
2393
|
+
return self._ParentId
|
2394
|
+
|
2395
|
+
@ParentId.setter
|
2396
|
+
def ParentId(self, ParentId):
|
2397
|
+
self._ParentId = ParentId
|
2398
|
+
|
2399
|
+
@property
|
2400
|
+
def MyId(self):
|
2401
|
+
return self._MyId
|
2402
|
+
|
2403
|
+
@MyId.setter
|
2404
|
+
def MyId(self, MyId):
|
2405
|
+
self._MyId = MyId
|
2406
|
+
|
2407
|
+
@property
|
2408
|
+
def BasicParams(self):
|
2409
|
+
return self._BasicParams
|
2410
|
+
|
2411
|
+
@BasicParams.setter
|
2412
|
+
def BasicParams(self, BasicParams):
|
2413
|
+
self._BasicParams = BasicParams
|
2414
|
+
|
2415
|
+
@property
|
2416
|
+
def ConfigSetParams(self):
|
2417
|
+
return self._ConfigSetParams
|
2418
|
+
|
2419
|
+
@ConfigSetParams.setter
|
2420
|
+
def ConfigSetParams(self, ConfigSetParams):
|
2421
|
+
self._ConfigSetParams = ConfigSetParams
|
2422
|
+
|
2423
|
+
@property
|
2424
|
+
def DeleteLables(self):
|
2425
|
+
return self._DeleteLables
|
2426
|
+
|
2427
|
+
@DeleteLables.setter
|
2428
|
+
def DeleteLables(self, DeleteLables):
|
2429
|
+
self._DeleteLables = DeleteLables
|
2430
|
+
|
2431
|
+
|
2432
|
+
def _deserialize(self, params):
|
2433
|
+
self._OpType = params.get("OpType")
|
2434
|
+
self._Name = params.get("Name")
|
2435
|
+
self._ParentId = params.get("ParentId")
|
2436
|
+
self._MyId = params.get("MyId")
|
2437
|
+
if params.get("BasicParams") is not None:
|
2438
|
+
self._BasicParams = ItemSeq()
|
2439
|
+
self._BasicParams._deserialize(params.get("BasicParams"))
|
2440
|
+
if params.get("ConfigSetParams") is not None:
|
2441
|
+
self._ConfigSetParams = []
|
2442
|
+
for item in params.get("ConfigSetParams"):
|
2443
|
+
obj = ConfigSetInfo()
|
2444
|
+
obj._deserialize(item)
|
2445
|
+
self._ConfigSetParams.append(obj)
|
2446
|
+
self._DeleteLables = params.get("DeleteLables")
|
2447
|
+
memeber_set = set(params.keys())
|
2448
|
+
for name, value in vars(self).items():
|
2449
|
+
property_name = name[1:]
|
2450
|
+
if property_name in memeber_set:
|
2451
|
+
memeber_set.remove(property_name)
|
2452
|
+
if len(memeber_set) > 0:
|
2453
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2454
|
+
|
2455
|
+
|
2456
|
+
|
2457
|
+
class ConfigSetInfo(AbstractModel):
|
2458
|
+
"""资源调度-配置集信息
|
2459
|
+
|
2460
|
+
"""
|
2461
|
+
|
2462
|
+
def __init__(self):
|
2463
|
+
r"""
|
2464
|
+
:param _ConfigSet: 配置集名称
|
2465
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2466
|
+
:type ConfigSet: str
|
2467
|
+
:param _LabelParams: 容量调度器会使用,里面设置了标签相关的配置。key的取值与**DescribeYarnQueue**返回的字段一致。
|
2468
|
+
key的取值信息如下:
|
2469
|
+
- labelName,标签名称,标签管理里的标签。
|
2470
|
+
- capacity,容量,取值为**数字字符串**
|
2471
|
+
- maximum-capacity,最大容量,取值为**数字字符串**
|
2472
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2473
|
+
:type LabelParams: list of ItemSeq
|
2474
|
+
:param _BasicParams: 设置配置集相关的参数。key的取值与**DescribeYarnQueue**返回的字段一致。
|
2475
|
+
###### 公平调度器
|
2476
|
+
key的取值信息如下:
|
2477
|
+
- minResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
2478
|
+
- maxResources,最大资源量,取值为**YarnResource类型的json串**或**null**
|
2479
|
+
- maxChildResources,能够分配给为未声明子队列的最大资源量,取值为**数字字符串**或**null**
|
2480
|
+
- maxRunningApps,最高可同时处于运行的App数量,取值为**数字字符串**或**null**
|
2481
|
+
- weight,权重,取值为**数字字符串**或**null**
|
2482
|
+
- maxAMShare,App Master最大份额,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
2483
|
+
|
2484
|
+
```
|
2485
|
+
type YarnResource struct {
|
2486
|
+
Vcores *int `json:"vcores"`
|
2487
|
+
Memory *int `json:"memory"`
|
2488
|
+
Type *string `json:"type"` // 取值为`percent`或`null`当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值。只有maxResources、maxChildResources才可以取值为`percent`
|
2489
|
+
}
|
2490
|
+
```
|
2491
|
+
|
2492
|
+
###### 容量调度器
|
2493
|
+
key的取值信息如下:
|
2494
|
+
- minimum-user-limit-percent,用户最小容量,取值为**YarnResource类型的json串**或**null**,其中数字的范围是[0,100]
|
2495
|
+
- user-limit-factor,用户资源因子,取值为**YarnResource类型的json串**或**null**
|
2496
|
+
- maximum-applications,最大应用数Max-Applications,取值为**数字字符串**或**null**,其中数字为正整数
|
2497
|
+
- maximum-am-resource-percent,最大AM比例,取值为**数字字符串**或**null**,其中数字的范围是[0,1]或-1
|
2498
|
+
- default-application-priority,资源池优先级,取值为**数字字符串**或**null**,其中数字为正整数
|
2499
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2500
|
+
:type BasicParams: list of Item
|
2501
|
+
"""
|
2502
|
+
self._ConfigSet = None
|
2503
|
+
self._LabelParams = None
|
2504
|
+
self._BasicParams = None
|
2505
|
+
|
2506
|
+
@property
|
2507
|
+
def ConfigSet(self):
|
2508
|
+
return self._ConfigSet
|
2509
|
+
|
2510
|
+
@ConfigSet.setter
|
2511
|
+
def ConfigSet(self, ConfigSet):
|
2512
|
+
self._ConfigSet = ConfigSet
|
2513
|
+
|
2514
|
+
@property
|
2515
|
+
def LabelParams(self):
|
2516
|
+
return self._LabelParams
|
2517
|
+
|
2518
|
+
@LabelParams.setter
|
2519
|
+
def LabelParams(self, LabelParams):
|
2520
|
+
self._LabelParams = LabelParams
|
2521
|
+
|
2522
|
+
@property
|
2523
|
+
def BasicParams(self):
|
2524
|
+
return self._BasicParams
|
2525
|
+
|
2526
|
+
@BasicParams.setter
|
2527
|
+
def BasicParams(self, BasicParams):
|
2528
|
+
self._BasicParams = BasicParams
|
2529
|
+
|
2530
|
+
|
2531
|
+
def _deserialize(self, params):
|
2532
|
+
self._ConfigSet = params.get("ConfigSet")
|
2533
|
+
if params.get("LabelParams") is not None:
|
2534
|
+
self._LabelParams = []
|
2535
|
+
for item in params.get("LabelParams"):
|
2536
|
+
obj = ItemSeq()
|
2537
|
+
obj._deserialize(item)
|
2538
|
+
self._LabelParams.append(obj)
|
2539
|
+
if params.get("BasicParams") is not None:
|
2540
|
+
self._BasicParams = []
|
2541
|
+
for item in params.get("BasicParams"):
|
2542
|
+
obj = Item()
|
2543
|
+
obj._deserialize(item)
|
2544
|
+
self._BasicParams.append(obj)
|
2545
|
+
memeber_set = set(params.keys())
|
2546
|
+
for name, value in vars(self).items():
|
2547
|
+
property_name = name[1:]
|
2548
|
+
if property_name in memeber_set:
|
2549
|
+
memeber_set.remove(property_name)
|
2550
|
+
if len(memeber_set) > 0:
|
2551
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2552
|
+
|
2553
|
+
|
2554
|
+
|
2299
2555
|
class Configuration(AbstractModel):
|
2300
2556
|
"""自定义配置参数
|
2301
2557
|
|
@@ -3708,6 +3964,76 @@ class DependService(AbstractModel):
|
|
3708
3964
|
|
3709
3965
|
|
3710
3966
|
|
3967
|
+
class DeployYarnConfRequest(AbstractModel):
|
3968
|
+
"""DeployYarnConf请求参数结构体
|
3969
|
+
|
3970
|
+
"""
|
3971
|
+
|
3972
|
+
def __init__(self):
|
3973
|
+
r"""
|
3974
|
+
:param _InstanceId: emr集群的英文id
|
3975
|
+
:type InstanceId: str
|
3976
|
+
"""
|
3977
|
+
self._InstanceId = None
|
3978
|
+
|
3979
|
+
@property
|
3980
|
+
def InstanceId(self):
|
3981
|
+
return self._InstanceId
|
3982
|
+
|
3983
|
+
@InstanceId.setter
|
3984
|
+
def InstanceId(self, InstanceId):
|
3985
|
+
self._InstanceId = InstanceId
|
3986
|
+
|
3987
|
+
|
3988
|
+
def _deserialize(self, params):
|
3989
|
+
self._InstanceId = params.get("InstanceId")
|
3990
|
+
memeber_set = set(params.keys())
|
3991
|
+
for name, value in vars(self).items():
|
3992
|
+
property_name = name[1:]
|
3993
|
+
if property_name in memeber_set:
|
3994
|
+
memeber_set.remove(property_name)
|
3995
|
+
if len(memeber_set) > 0:
|
3996
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3997
|
+
|
3998
|
+
|
3999
|
+
|
4000
|
+
class DeployYarnConfResponse(AbstractModel):
|
4001
|
+
"""DeployYarnConf返回参数结构体
|
4002
|
+
|
4003
|
+
"""
|
4004
|
+
|
4005
|
+
def __init__(self):
|
4006
|
+
r"""
|
4007
|
+
:param _FlowId: 启动流程后的流程ID,可以使用[DescribeClusterFlowStatusDetail](https://cloud.tencent.com/document/product/589/107224)接口来获取流程状态
|
4008
|
+
:type FlowId: int
|
4009
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4010
|
+
:type RequestId: str
|
4011
|
+
"""
|
4012
|
+
self._FlowId = None
|
4013
|
+
self._RequestId = None
|
4014
|
+
|
4015
|
+
@property
|
4016
|
+
def FlowId(self):
|
4017
|
+
return self._FlowId
|
4018
|
+
|
4019
|
+
@FlowId.setter
|
4020
|
+
def FlowId(self, FlowId):
|
4021
|
+
self._FlowId = FlowId
|
4022
|
+
|
4023
|
+
@property
|
4024
|
+
def RequestId(self):
|
4025
|
+
return self._RequestId
|
4026
|
+
|
4027
|
+
@RequestId.setter
|
4028
|
+
def RequestId(self, RequestId):
|
4029
|
+
self._RequestId = RequestId
|
4030
|
+
|
4031
|
+
|
4032
|
+
def _deserialize(self, params):
|
4033
|
+
self._FlowId = params.get("FlowId")
|
4034
|
+
self._RequestId = params.get("RequestId")
|
4035
|
+
|
4036
|
+
|
3711
4037
|
class DescribeAutoScaleGroupGlobalConfRequest(AbstractModel):
|
3712
4038
|
"""DescribeAutoScaleGroupGlobalConf请求参数结构体
|
3713
4039
|
|
@@ -6931,6 +7257,195 @@ class DescribeYarnApplicationsResponse(AbstractModel):
|
|
6931
7257
|
self._RequestId = params.get("RequestId")
|
6932
7258
|
|
6933
7259
|
|
7260
|
+
class DescribeYarnQueueRequest(AbstractModel):
|
7261
|
+
"""DescribeYarnQueue请求参数结构体
|
7262
|
+
|
7263
|
+
"""
|
7264
|
+
|
7265
|
+
def __init__(self):
|
7266
|
+
r"""
|
7267
|
+
:param _InstanceId: 集群Id
|
7268
|
+
:type InstanceId: str
|
7269
|
+
:param _Scheduler: 调度器,可选值:
|
7270
|
+
|
7271
|
+
1. capacity
|
7272
|
+
2. fair
|
7273
|
+
:type Scheduler: str
|
7274
|
+
"""
|
7275
|
+
self._InstanceId = None
|
7276
|
+
self._Scheduler = None
|
7277
|
+
|
7278
|
+
@property
|
7279
|
+
def InstanceId(self):
|
7280
|
+
return self._InstanceId
|
7281
|
+
|
7282
|
+
@InstanceId.setter
|
7283
|
+
def InstanceId(self, InstanceId):
|
7284
|
+
self._InstanceId = InstanceId
|
7285
|
+
|
7286
|
+
@property
|
7287
|
+
def Scheduler(self):
|
7288
|
+
return self._Scheduler
|
7289
|
+
|
7290
|
+
@Scheduler.setter
|
7291
|
+
def Scheduler(self, Scheduler):
|
7292
|
+
self._Scheduler = Scheduler
|
7293
|
+
|
7294
|
+
|
7295
|
+
def _deserialize(self, params):
|
7296
|
+
self._InstanceId = params.get("InstanceId")
|
7297
|
+
self._Scheduler = params.get("Scheduler")
|
7298
|
+
memeber_set = set(params.keys())
|
7299
|
+
for name, value in vars(self).items():
|
7300
|
+
property_name = name[1:]
|
7301
|
+
if property_name in memeber_set:
|
7302
|
+
memeber_set.remove(property_name)
|
7303
|
+
if len(memeber_set) > 0:
|
7304
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
7305
|
+
|
7306
|
+
|
7307
|
+
|
7308
|
+
class DescribeYarnQueueResponse(AbstractModel):
|
7309
|
+
"""DescribeYarnQueue返回参数结构体
|
7310
|
+
|
7311
|
+
"""
|
7312
|
+
|
7313
|
+
def __init__(self):
|
7314
|
+
r"""
|
7315
|
+
:param _Queue: 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,比如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:
|
7316
|
+
|
7317
|
+
```
|
7318
|
+
Name string `json:"name"` //队列名称
|
7319
|
+
```
|
7320
|
+
- `Name`:字段名
|
7321
|
+
- `string`:字段类型
|
7322
|
+
- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
|
7323
|
+
- `//`:后面的注释内容对应页面上看到的名称
|
7324
|
+
|
7325
|
+
字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
|
7326
|
+
|
7327
|
+
- 公平调度器
|
7328
|
+
|
7329
|
+
```
|
7330
|
+
type QueueWithConfigSetForFairScheduler struct {
|
7331
|
+
Name string `json:"name"` //队列名称
|
7332
|
+
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
7333
|
+
ParentId string `json:"parentId"` // 父队列Id
|
7334
|
+
Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
|
7335
|
+
AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
|
7336
|
+
AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
|
7337
|
+
MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
|
7338
|
+
FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
|
7339
|
+
FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
|
7340
|
+
AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
|
7341
|
+
SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
|
7342
|
+
IsDefault *bool `json:"isDefault"` // 是否是root.default队列
|
7343
|
+
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
7344
|
+
ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
|
7345
|
+
Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
|
7346
|
+
}
|
7347
|
+
|
7348
|
+
type AclForYarnQueue struct {
|
7349
|
+
User *string `json:"user"` //用户名
|
7350
|
+
Group *string `json:"group"`//组名
|
7351
|
+
}
|
7352
|
+
|
7353
|
+
type ConfigSetForFairScheduler struct {
|
7354
|
+
Name string `json:"name"` // 配置集名称
|
7355
|
+
MinResources *YarnResource `json:"minResources"` // 最小资源量
|
7356
|
+
MaxResources *YarnResource `json:"maxResources"` // 最大资源量
|
7357
|
+
MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
|
7358
|
+
MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
|
7359
|
+
Weight *float32 `json:"weight"` // 权重
|
7360
|
+
MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
|
7361
|
+
}
|
7362
|
+
|
7363
|
+
type YarnResource struct {
|
7364
|
+
Vcores *int `json:"vcores"`
|
7365
|
+
Memory *int `json:"memory"`
|
7366
|
+
Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
|
7367
|
+
}
|
7368
|
+
```
|
7369
|
+
|
7370
|
+
- 容量调度器
|
7371
|
+
|
7372
|
+
```
|
7373
|
+
type QueueForCapacitySchedulerV3 struct {
|
7374
|
+
Name string `json:"name"` // 队列名称
|
7375
|
+
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
7376
|
+
ParentId string `json:"parentId"` // 父队列Id
|
7377
|
+
Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
|
7378
|
+
State *string `json:"state"` // 资源池状态
|
7379
|
+
DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
|
7380
|
+
AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
|
7381
|
+
AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
|
7382
|
+
MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
|
7383
|
+
MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
|
7384
|
+
IsDefault *bool `json:"isDefault"`// 是否是root.default队列
|
7385
|
+
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
7386
|
+
Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
|
7387
|
+
}
|
7388
|
+
type ConfigForCapacityV3 struct {
|
7389
|
+
Name string `json:"configName"` // 配置集名称
|
7390
|
+
Labels []CapacityLabel `json:"labels"` // 标签信息
|
7391
|
+
MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
|
7392
|
+
UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
|
7393
|
+
MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
|
7394
|
+
MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
|
7395
|
+
DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
|
7396
|
+
}
|
7397
|
+
type CapacityLabel struct {
|
7398
|
+
Name string `json:"labelName"`
|
7399
|
+
Capacity *float32 `json:"capacity"` // 容量
|
7400
|
+
MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
|
7401
|
+
}
|
7402
|
+
|
7403
|
+
type AclForYarnQueue struct {
|
7404
|
+
User *string `json:"user"` //用户名
|
7405
|
+
Group *string `json:"group"`//组名
|
7406
|
+
}
|
7407
|
+
```
|
7408
|
+
:type Queue: str
|
7409
|
+
:param _Version: 版本
|
7410
|
+
:type Version: str
|
7411
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7412
|
+
:type RequestId: str
|
7413
|
+
"""
|
7414
|
+
self._Queue = None
|
7415
|
+
self._Version = None
|
7416
|
+
self._RequestId = None
|
7417
|
+
|
7418
|
+
@property
|
7419
|
+
def Queue(self):
|
7420
|
+
return self._Queue
|
7421
|
+
|
7422
|
+
@Queue.setter
|
7423
|
+
def Queue(self, Queue):
|
7424
|
+
self._Queue = Queue
|
7425
|
+
|
7426
|
+
@property
|
7427
|
+
def Version(self):
|
7428
|
+
return self._Version
|
7429
|
+
|
7430
|
+
@Version.setter
|
7431
|
+
def Version(self, Version):
|
7432
|
+
self._Version = Version
|
7433
|
+
|
7434
|
+
@property
|
7435
|
+
def RequestId(self):
|
7436
|
+
return self._RequestId
|
7437
|
+
|
7438
|
+
@RequestId.setter
|
7439
|
+
def RequestId(self, RequestId):
|
7440
|
+
self._RequestId = RequestId
|
7441
|
+
|
7442
|
+
|
7443
|
+
def _deserialize(self, params):
|
7444
|
+
self._Queue = params.get("Queue")
|
7445
|
+
self._Version = params.get("Version")
|
7446
|
+
self._RequestId = params.get("RequestId")
|
7447
|
+
|
7448
|
+
|
6934
7449
|
class DescribeYarnScheduleHistoryRequest(AbstractModel):
|
6935
7450
|
"""DescribeYarnScheduleHistory请求参数结构体
|
6936
7451
|
|
@@ -10894,6 +11409,92 @@ class InstanceChargePrepaid(AbstractModel):
|
|
10894
11409
|
|
10895
11410
|
|
10896
11411
|
|
11412
|
+
class Item(AbstractModel):
|
11413
|
+
"""代表一个kv结构
|
11414
|
+
|
11415
|
+
"""
|
11416
|
+
|
11417
|
+
def __init__(self):
|
11418
|
+
r"""
|
11419
|
+
:param _Key: 健值
|
11420
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
11421
|
+
:type Key: str
|
11422
|
+
:param _Value: 值
|
11423
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
11424
|
+
:type Value: str
|
11425
|
+
"""
|
11426
|
+
self._Key = None
|
11427
|
+
self._Value = None
|
11428
|
+
|
11429
|
+
@property
|
11430
|
+
def Key(self):
|
11431
|
+
return self._Key
|
11432
|
+
|
11433
|
+
@Key.setter
|
11434
|
+
def Key(self, Key):
|
11435
|
+
self._Key = Key
|
11436
|
+
|
11437
|
+
@property
|
11438
|
+
def Value(self):
|
11439
|
+
return self._Value
|
11440
|
+
|
11441
|
+
@Value.setter
|
11442
|
+
def Value(self, Value):
|
11443
|
+
self._Value = Value
|
11444
|
+
|
11445
|
+
|
11446
|
+
def _deserialize(self, params):
|
11447
|
+
self._Key = params.get("Key")
|
11448
|
+
self._Value = params.get("Value")
|
11449
|
+
memeber_set = set(params.keys())
|
11450
|
+
for name, value in vars(self).items():
|
11451
|
+
property_name = name[1:]
|
11452
|
+
if property_name in memeber_set:
|
11453
|
+
memeber_set.remove(property_name)
|
11454
|
+
if len(memeber_set) > 0:
|
11455
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11456
|
+
|
11457
|
+
|
11458
|
+
|
11459
|
+
class ItemSeq(AbstractModel):
|
11460
|
+
"""键值对组成的列表
|
11461
|
+
|
11462
|
+
"""
|
11463
|
+
|
11464
|
+
def __init__(self):
|
11465
|
+
r"""
|
11466
|
+
:param _Items: 标签名称
|
11467
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
11468
|
+
:type Items: list of Item
|
11469
|
+
"""
|
11470
|
+
self._Items = None
|
11471
|
+
|
11472
|
+
@property
|
11473
|
+
def Items(self):
|
11474
|
+
return self._Items
|
11475
|
+
|
11476
|
+
@Items.setter
|
11477
|
+
def Items(self, Items):
|
11478
|
+
self._Items = Items
|
11479
|
+
|
11480
|
+
|
11481
|
+
def _deserialize(self, params):
|
11482
|
+
if params.get("Items") is not None:
|
11483
|
+
self._Items = []
|
11484
|
+
for item in params.get("Items"):
|
11485
|
+
obj = Item()
|
11486
|
+
obj._deserialize(item)
|
11487
|
+
self._Items.append(obj)
|
11488
|
+
memeber_set = set(params.keys())
|
11489
|
+
for name, value in vars(self).items():
|
11490
|
+
property_name = name[1:]
|
11491
|
+
if property_name in memeber_set:
|
11492
|
+
memeber_set.remove(property_name)
|
11493
|
+
if len(memeber_set) > 0:
|
11494
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
11495
|
+
|
11496
|
+
|
11497
|
+
|
10897
11498
|
class JobFlowResource(AbstractModel):
|
10898
11499
|
"""机器资源描述。
|
10899
11500
|
|
@@ -12694,6 +13295,96 @@ class ModifyYarnDeployResponse(AbstractModel):
|
|
12694
13295
|
self._RequestId = params.get("RequestId")
|
12695
13296
|
|
12696
13297
|
|
13298
|
+
class ModifyYarnQueueV2Request(AbstractModel):
|
13299
|
+
"""ModifyYarnQueueV2请求参数结构体
|
13300
|
+
|
13301
|
+
"""
|
13302
|
+
|
13303
|
+
def __init__(self):
|
13304
|
+
r"""
|
13305
|
+
:param _InstanceId: 集群Id
|
13306
|
+
:type InstanceId: str
|
13307
|
+
:param _Scheduler: 调度器类型。可选值:
|
13308
|
+
|
13309
|
+
1. capacity
|
13310
|
+
2. fair
|
13311
|
+
:type Scheduler: str
|
13312
|
+
:param _ConfigModifyInfoList: 资源池数据
|
13313
|
+
:type ConfigModifyInfoList: list of ConfigModifyInfoV2
|
13314
|
+
"""
|
13315
|
+
self._InstanceId = None
|
13316
|
+
self._Scheduler = None
|
13317
|
+
self._ConfigModifyInfoList = None
|
13318
|
+
|
13319
|
+
@property
|
13320
|
+
def InstanceId(self):
|
13321
|
+
return self._InstanceId
|
13322
|
+
|
13323
|
+
@InstanceId.setter
|
13324
|
+
def InstanceId(self, InstanceId):
|
13325
|
+
self._InstanceId = InstanceId
|
13326
|
+
|
13327
|
+
@property
|
13328
|
+
def Scheduler(self):
|
13329
|
+
return self._Scheduler
|
13330
|
+
|
13331
|
+
@Scheduler.setter
|
13332
|
+
def Scheduler(self, Scheduler):
|
13333
|
+
self._Scheduler = Scheduler
|
13334
|
+
|
13335
|
+
@property
|
13336
|
+
def ConfigModifyInfoList(self):
|
13337
|
+
return self._ConfigModifyInfoList
|
13338
|
+
|
13339
|
+
@ConfigModifyInfoList.setter
|
13340
|
+
def ConfigModifyInfoList(self, ConfigModifyInfoList):
|
13341
|
+
self._ConfigModifyInfoList = ConfigModifyInfoList
|
13342
|
+
|
13343
|
+
|
13344
|
+
def _deserialize(self, params):
|
13345
|
+
self._InstanceId = params.get("InstanceId")
|
13346
|
+
self._Scheduler = params.get("Scheduler")
|
13347
|
+
if params.get("ConfigModifyInfoList") is not None:
|
13348
|
+
self._ConfigModifyInfoList = []
|
13349
|
+
for item in params.get("ConfigModifyInfoList"):
|
13350
|
+
obj = ConfigModifyInfoV2()
|
13351
|
+
obj._deserialize(item)
|
13352
|
+
self._ConfigModifyInfoList.append(obj)
|
13353
|
+
memeber_set = set(params.keys())
|
13354
|
+
for name, value in vars(self).items():
|
13355
|
+
property_name = name[1:]
|
13356
|
+
if property_name in memeber_set:
|
13357
|
+
memeber_set.remove(property_name)
|
13358
|
+
if len(memeber_set) > 0:
|
13359
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
13360
|
+
|
13361
|
+
|
13362
|
+
|
13363
|
+
class ModifyYarnQueueV2Response(AbstractModel):
|
13364
|
+
"""ModifyYarnQueueV2返回参数结构体
|
13365
|
+
|
13366
|
+
"""
|
13367
|
+
|
13368
|
+
def __init__(self):
|
13369
|
+
r"""
|
13370
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
13371
|
+
:type RequestId: str
|
13372
|
+
"""
|
13373
|
+
self._RequestId = None
|
13374
|
+
|
13375
|
+
@property
|
13376
|
+
def RequestId(self):
|
13377
|
+
return self._RequestId
|
13378
|
+
|
13379
|
+
@RequestId.setter
|
13380
|
+
def RequestId(self, RequestId):
|
13381
|
+
self._RequestId = RequestId
|
13382
|
+
|
13383
|
+
|
13384
|
+
def _deserialize(self, params):
|
13385
|
+
self._RequestId = params.get("RequestId")
|
13386
|
+
|
13387
|
+
|
12697
13388
|
class MonthRepeatStrategy(AbstractModel):
|
12698
13389
|
"""定时伸缩每月重复任务策略
|
12699
13390
|
|
@@ -16316,6 +17007,80 @@ class RepeatStrategy(AbstractModel):
|
|
16316
17007
|
|
16317
17008
|
|
16318
17009
|
|
17010
|
+
class ResetYarnConfigRequest(AbstractModel):
|
17011
|
+
"""ResetYarnConfig请求参数结构体
|
17012
|
+
|
17013
|
+
"""
|
17014
|
+
|
17015
|
+
def __init__(self):
|
17016
|
+
r"""
|
17017
|
+
:param _InstanceId: emr集群的英文id
|
17018
|
+
:type InstanceId: str
|
17019
|
+
:param _Key: 要重置的配置别名,可选值:
|
17020
|
+
|
17021
|
+
- capacityLabel:重置标签管理的配置
|
17022
|
+
- fair:重置公平调度的配置
|
17023
|
+
- capacity:重置容量调度的配置
|
17024
|
+
:type Key: str
|
17025
|
+
"""
|
17026
|
+
self._InstanceId = None
|
17027
|
+
self._Key = None
|
17028
|
+
|
17029
|
+
@property
|
17030
|
+
def InstanceId(self):
|
17031
|
+
return self._InstanceId
|
17032
|
+
|
17033
|
+
@InstanceId.setter
|
17034
|
+
def InstanceId(self, InstanceId):
|
17035
|
+
self._InstanceId = InstanceId
|
17036
|
+
|
17037
|
+
@property
|
17038
|
+
def Key(self):
|
17039
|
+
return self._Key
|
17040
|
+
|
17041
|
+
@Key.setter
|
17042
|
+
def Key(self, Key):
|
17043
|
+
self._Key = Key
|
17044
|
+
|
17045
|
+
|
17046
|
+
def _deserialize(self, params):
|
17047
|
+
self._InstanceId = params.get("InstanceId")
|
17048
|
+
self._Key = params.get("Key")
|
17049
|
+
memeber_set = set(params.keys())
|
17050
|
+
for name, value in vars(self).items():
|
17051
|
+
property_name = name[1:]
|
17052
|
+
if property_name in memeber_set:
|
17053
|
+
memeber_set.remove(property_name)
|
17054
|
+
if len(memeber_set) > 0:
|
17055
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
17056
|
+
|
17057
|
+
|
17058
|
+
|
17059
|
+
class ResetYarnConfigResponse(AbstractModel):
|
17060
|
+
"""ResetYarnConfig返回参数结构体
|
17061
|
+
|
17062
|
+
"""
|
17063
|
+
|
17064
|
+
def __init__(self):
|
17065
|
+
r"""
|
17066
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
17067
|
+
:type RequestId: str
|
17068
|
+
"""
|
17069
|
+
self._RequestId = None
|
17070
|
+
|
17071
|
+
@property
|
17072
|
+
def RequestId(self):
|
17073
|
+
return self._RequestId
|
17074
|
+
|
17075
|
+
@RequestId.setter
|
17076
|
+
def RequestId(self, RequestId):
|
17077
|
+
self._RequestId = RequestId
|
17078
|
+
|
17079
|
+
|
17080
|
+
def _deserialize(self, params):
|
17081
|
+
self._RequestId = params.get("RequestId")
|
17082
|
+
|
17083
|
+
|
16319
17084
|
class Resource(AbstractModel):
|
16320
17085
|
"""资源详情
|
16321
17086
|
|