tencentcloud-sdk-python-emr 3.1.72__tar.gz → 3.1.81__tar.gz
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_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/setup.py +1 -1
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud/emr/v20190103/emr_client.py +46 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud/emr/v20190103/emr_client_async.py +36 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud/emr/v20190103/models.py +552 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud_sdk_python_emr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_emr-3.1.81/tencentcloud_sdk_python_emr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_emr-3.1.72/tencentcloud_sdk_python_emr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/README.rst +0 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/setup.cfg +0 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud/emr/__init__.py +0 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud/emr/v20190103/__init__.py +0 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud/emr/v20190103/errorcodes.py +0 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud_sdk_python_emr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud_sdk_python_emr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_emr-3.1.72 → tencentcloud_sdk_python_emr-3.1.81}/tencentcloud_sdk_python_emr.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-emr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.81
|
|
4
4
|
Summary: Tencent Cloud Emr SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.81
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-emr',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.81,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Emr SDK for Python',
|
|
@@ -443,6 +443,29 @@ class EmrClient(AbstractClient):
|
|
|
443
443
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
444
444
|
|
|
445
445
|
|
|
446
|
+
def DescribeBootScript(self, request):
|
|
447
|
+
r"""获取引导脚本
|
|
448
|
+
|
|
449
|
+
:param request: Request instance for DescribeBootScript.
|
|
450
|
+
:type request: :class:`tencentcloud.emr.v20190103.models.DescribeBootScriptRequest`
|
|
451
|
+
:rtype: :class:`tencentcloud.emr.v20190103.models.DescribeBootScriptResponse`
|
|
452
|
+
|
|
453
|
+
"""
|
|
454
|
+
try:
|
|
455
|
+
params = request._serialize()
|
|
456
|
+
headers = request.headers
|
|
457
|
+
body = self.call("DescribeBootScript", params, headers=headers)
|
|
458
|
+
response = json.loads(body)
|
|
459
|
+
model = models.DescribeBootScriptResponse()
|
|
460
|
+
model._deserialize(response["Response"])
|
|
461
|
+
return model
|
|
462
|
+
except Exception as e:
|
|
463
|
+
if isinstance(e, TencentCloudSDKException):
|
|
464
|
+
raise
|
|
465
|
+
else:
|
|
466
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
467
|
+
|
|
468
|
+
|
|
446
469
|
def DescribeClusterFlowStatusDetail(self, request):
|
|
447
470
|
r"""查询EMR任务运行详情状态
|
|
448
471
|
|
|
@@ -1526,6 +1549,29 @@ class EmrClient(AbstractClient):
|
|
|
1526
1549
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1527
1550
|
|
|
1528
1551
|
|
|
1552
|
+
def ModifyBootScript(self, request):
|
|
1553
|
+
r"""修改引导脚本
|
|
1554
|
+
|
|
1555
|
+
:param request: Request instance for ModifyBootScript.
|
|
1556
|
+
:type request: :class:`tencentcloud.emr.v20190103.models.ModifyBootScriptRequest`
|
|
1557
|
+
:rtype: :class:`tencentcloud.emr.v20190103.models.ModifyBootScriptResponse`
|
|
1558
|
+
|
|
1559
|
+
"""
|
|
1560
|
+
try:
|
|
1561
|
+
params = request._serialize()
|
|
1562
|
+
headers = request.headers
|
|
1563
|
+
body = self.call("ModifyBootScript", params, headers=headers)
|
|
1564
|
+
response = json.loads(body)
|
|
1565
|
+
model = models.ModifyBootScriptResponse()
|
|
1566
|
+
model._deserialize(response["Response"])
|
|
1567
|
+
return model
|
|
1568
|
+
except Exception as e:
|
|
1569
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1570
|
+
raise
|
|
1571
|
+
else:
|
|
1572
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1573
|
+
|
|
1574
|
+
|
|
1529
1575
|
def ModifyGlobalConfig(self, request):
|
|
1530
1576
|
r"""修改YARN资源调度的全局配置
|
|
1531
1577
|
|
|
@@ -352,6 +352,24 @@ class EmrClient(AbstractClient):
|
|
|
352
352
|
|
|
353
353
|
return await self.call_and_deserialize(**kwargs)
|
|
354
354
|
|
|
355
|
+
async def DescribeBootScript(
|
|
356
|
+
self,
|
|
357
|
+
request: models.DescribeBootScriptRequest,
|
|
358
|
+
opts: Dict = None,
|
|
359
|
+
) -> models.DescribeBootScriptResponse:
|
|
360
|
+
"""
|
|
361
|
+
获取引导脚本
|
|
362
|
+
"""
|
|
363
|
+
|
|
364
|
+
kwargs = {}
|
|
365
|
+
kwargs["action"] = "DescribeBootScript"
|
|
366
|
+
kwargs["params"] = request._serialize()
|
|
367
|
+
kwargs["resp_cls"] = models.DescribeBootScriptResponse
|
|
368
|
+
kwargs["headers"] = request.headers
|
|
369
|
+
kwargs["opts"] = opts or {}
|
|
370
|
+
|
|
371
|
+
return await self.call_and_deserialize(**kwargs)
|
|
372
|
+
|
|
355
373
|
async def DescribeClusterFlowStatusDetail(
|
|
356
374
|
self,
|
|
357
375
|
request: models.DescribeClusterFlowStatusDetailRequest,
|
|
@@ -1200,6 +1218,24 @@ class EmrClient(AbstractClient):
|
|
|
1200
1218
|
|
|
1201
1219
|
return await self.call_and_deserialize(**kwargs)
|
|
1202
1220
|
|
|
1221
|
+
async def ModifyBootScript(
|
|
1222
|
+
self,
|
|
1223
|
+
request: models.ModifyBootScriptRequest,
|
|
1224
|
+
opts: Dict = None,
|
|
1225
|
+
) -> models.ModifyBootScriptResponse:
|
|
1226
|
+
"""
|
|
1227
|
+
修改引导脚本
|
|
1228
|
+
"""
|
|
1229
|
+
|
|
1230
|
+
kwargs = {}
|
|
1231
|
+
kwargs["action"] = "ModifyBootScript"
|
|
1232
|
+
kwargs["params"] = request._serialize()
|
|
1233
|
+
kwargs["resp_cls"] = models.ModifyBootScriptResponse
|
|
1234
|
+
kwargs["headers"] = request.headers
|
|
1235
|
+
kwargs["opts"] = opts or {}
|
|
1236
|
+
|
|
1237
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1238
|
+
|
|
1203
1239
|
async def ModifyGlobalConfig(
|
|
1204
1240
|
self,
|
|
1205
1241
|
request: models.ModifyGlobalConfigRequest,
|
|
@@ -5075,6 +5075,8 @@ class CreateClusterRequest(AbstractModel):
|
|
|
5075
5075
|
:type SgIP: str
|
|
5076
5076
|
:param _PartitionNumber: <p>分区置放群组分区</p>
|
|
5077
5077
|
:type PartitionNumber: int
|
|
5078
|
+
:param _WebUiVersion: <p>服务ui地址</p><p>枚举值:</p><ul><li>0: 服务ui地址,只返回1条服务ui地址</li><li>1: 服务ui地址,如果服务含有多个ui地址将全部返回,例如impala的Impalad、StateStore、Catalogd</li></ul><p>默认值:0</p>
|
|
5079
|
+
:type WebUiVersion: int
|
|
5078
5080
|
"""
|
|
5079
5081
|
self._ProductVersion = None
|
|
5080
5082
|
self._EnableSupportHAFlag = None
|
|
@@ -5103,6 +5105,7 @@ class CreateClusterRequest(AbstractModel):
|
|
|
5103
5105
|
self._NeedCdbAudit = None
|
|
5104
5106
|
self._SgIP = None
|
|
5105
5107
|
self._PartitionNumber = None
|
|
5108
|
+
self._WebUiVersion = None
|
|
5106
5109
|
|
|
5107
5110
|
@property
|
|
5108
5111
|
def ProductVersion(self):
|
|
@@ -5401,6 +5404,17 @@ class CreateClusterRequest(AbstractModel):
|
|
|
5401
5404
|
def PartitionNumber(self, PartitionNumber):
|
|
5402
5405
|
self._PartitionNumber = PartitionNumber
|
|
5403
5406
|
|
|
5407
|
+
@property
|
|
5408
|
+
def WebUiVersion(self):
|
|
5409
|
+
r"""<p>服务ui地址</p><p>枚举值:</p><ul><li>0: 服务ui地址,只返回1条服务ui地址</li><li>1: 服务ui地址,如果服务含有多个ui地址将全部返回,例如impala的Impalad、StateStore、Catalogd</li></ul><p>默认值:0</p>
|
|
5410
|
+
:rtype: int
|
|
5411
|
+
"""
|
|
5412
|
+
return self._WebUiVersion
|
|
5413
|
+
|
|
5414
|
+
@WebUiVersion.setter
|
|
5415
|
+
def WebUiVersion(self, WebUiVersion):
|
|
5416
|
+
self._WebUiVersion = WebUiVersion
|
|
5417
|
+
|
|
5404
5418
|
|
|
5405
5419
|
def _deserialize(self, params):
|
|
5406
5420
|
self._ProductVersion = params.get("ProductVersion")
|
|
@@ -5463,6 +5477,7 @@ class CreateClusterRequest(AbstractModel):
|
|
|
5463
5477
|
self._NeedCdbAudit = params.get("NeedCdbAudit")
|
|
5464
5478
|
self._SgIP = params.get("SgIP")
|
|
5465
5479
|
self._PartitionNumber = params.get("PartitionNumber")
|
|
5480
|
+
self._WebUiVersion = params.get("WebUiVersion")
|
|
5466
5481
|
memeber_set = set(params.keys())
|
|
5467
5482
|
for name, value in vars(self).items():
|
|
5468
5483
|
property_name = name[1:]
|
|
@@ -5705,6 +5720,8 @@ class CreateInstanceRequest(AbstractModel):
|
|
|
5705
5720
|
:type SgIP: str
|
|
5706
5721
|
:param _PartitionNumber: <p>分区置放群组分区</p>
|
|
5707
5722
|
:type PartitionNumber: int
|
|
5723
|
+
:param _WebUiVersion: <p>服务ui地址</p><p>枚举值:</p><ul><li>0: 服务ui地址,只返回1条服务ui地址</li><li>1: 服务ui地址,如果服务含有多个ui地址将全部返回,例如impala的Impalad、StateStore、Catalogd</li></ul><p>默认值:0</p>
|
|
5724
|
+
:type WebUiVersion: int
|
|
5708
5725
|
"""
|
|
5709
5726
|
self._ProductId = None
|
|
5710
5727
|
self._Software = None
|
|
@@ -5745,6 +5762,7 @@ class CreateInstanceRequest(AbstractModel):
|
|
|
5745
5762
|
self._NeedCdbAudit = None
|
|
5746
5763
|
self._SgIP = None
|
|
5747
5764
|
self._PartitionNumber = None
|
|
5765
|
+
self._WebUiVersion = None
|
|
5748
5766
|
|
|
5749
5767
|
@property
|
|
5750
5768
|
def ProductId(self):
|
|
@@ -6175,6 +6193,17 @@ class CreateInstanceRequest(AbstractModel):
|
|
|
6175
6193
|
def PartitionNumber(self, PartitionNumber):
|
|
6176
6194
|
self._PartitionNumber = PartitionNumber
|
|
6177
6195
|
|
|
6196
|
+
@property
|
|
6197
|
+
def WebUiVersion(self):
|
|
6198
|
+
r"""<p>服务ui地址</p><p>枚举值:</p><ul><li>0: 服务ui地址,只返回1条服务ui地址</li><li>1: 服务ui地址,如果服务含有多个ui地址将全部返回,例如impala的Impalad、StateStore、Catalogd</li></ul><p>默认值:0</p>
|
|
6199
|
+
:rtype: int
|
|
6200
|
+
"""
|
|
6201
|
+
return self._WebUiVersion
|
|
6202
|
+
|
|
6203
|
+
@WebUiVersion.setter
|
|
6204
|
+
def WebUiVersion(self, WebUiVersion):
|
|
6205
|
+
self._WebUiVersion = WebUiVersion
|
|
6206
|
+
|
|
6178
6207
|
|
|
6179
6208
|
def _deserialize(self, params):
|
|
6180
6209
|
self._ProductId = params.get("ProductId")
|
|
@@ -6253,6 +6282,7 @@ class CreateInstanceRequest(AbstractModel):
|
|
|
6253
6282
|
self._NeedCdbAudit = params.get("NeedCdbAudit")
|
|
6254
6283
|
self._SgIP = params.get("SgIP")
|
|
6255
6284
|
self._PartitionNumber = params.get("PartitionNumber")
|
|
6285
|
+
self._WebUiVersion = params.get("WebUiVersion")
|
|
6256
6286
|
memeber_set = set(params.keys())
|
|
6257
6287
|
for name, value in vars(self).items():
|
|
6258
6288
|
property_name = name[1:]
|
|
@@ -7996,6 +8026,213 @@ class DescribeAutoScaleStrategiesResponse(AbstractModel):
|
|
|
7996
8026
|
self._RequestId = params.get("RequestId")
|
|
7997
8027
|
|
|
7998
8028
|
|
|
8029
|
+
class DescribeBootScriptRequest(AbstractModel):
|
|
8030
|
+
r"""DescribeBootScript请求参数结构体
|
|
8031
|
+
|
|
8032
|
+
"""
|
|
8033
|
+
|
|
8034
|
+
def __init__(self):
|
|
8035
|
+
r"""
|
|
8036
|
+
:param _InstanceId: EMR实例序列号
|
|
8037
|
+
:type InstanceId: str
|
|
8038
|
+
:param _BootType: 引导脚本类型,resourceAfter,clusterAfter,clusterBefore不填时表示全部时机
|
|
8039
|
+
:type BootType: str
|
|
8040
|
+
"""
|
|
8041
|
+
self._InstanceId = None
|
|
8042
|
+
self._BootType = None
|
|
8043
|
+
|
|
8044
|
+
@property
|
|
8045
|
+
def InstanceId(self):
|
|
8046
|
+
r"""EMR实例序列号
|
|
8047
|
+
:rtype: str
|
|
8048
|
+
"""
|
|
8049
|
+
return self._InstanceId
|
|
8050
|
+
|
|
8051
|
+
@InstanceId.setter
|
|
8052
|
+
def InstanceId(self, InstanceId):
|
|
8053
|
+
self._InstanceId = InstanceId
|
|
8054
|
+
|
|
8055
|
+
@property
|
|
8056
|
+
def BootType(self):
|
|
8057
|
+
r"""引导脚本类型,resourceAfter,clusterAfter,clusterBefore不填时表示全部时机
|
|
8058
|
+
:rtype: str
|
|
8059
|
+
"""
|
|
8060
|
+
return self._BootType
|
|
8061
|
+
|
|
8062
|
+
@BootType.setter
|
|
8063
|
+
def BootType(self, BootType):
|
|
8064
|
+
self._BootType = BootType
|
|
8065
|
+
|
|
8066
|
+
|
|
8067
|
+
def _deserialize(self, params):
|
|
8068
|
+
self._InstanceId = params.get("InstanceId")
|
|
8069
|
+
self._BootType = params.get("BootType")
|
|
8070
|
+
memeber_set = set(params.keys())
|
|
8071
|
+
for name, value in vars(self).items():
|
|
8072
|
+
property_name = name[1:]
|
|
8073
|
+
if property_name in memeber_set:
|
|
8074
|
+
memeber_set.remove(property_name)
|
|
8075
|
+
if len(memeber_set) > 0:
|
|
8076
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8077
|
+
|
|
8078
|
+
|
|
8079
|
+
|
|
8080
|
+
class DescribeBootScriptResponse(AbstractModel):
|
|
8081
|
+
r"""DescribeBootScript返回参数结构体
|
|
8082
|
+
|
|
8083
|
+
"""
|
|
8084
|
+
|
|
8085
|
+
def __init__(self):
|
|
8086
|
+
r"""
|
|
8087
|
+
:param _Detail: 引导脚本详情
|
|
8088
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8089
|
+
:type Detail: :class:`tencentcloud.emr.v20190103.models.DescribeBootScriptRsp`
|
|
8090
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8091
|
+
:type RequestId: str
|
|
8092
|
+
"""
|
|
8093
|
+
self._Detail = None
|
|
8094
|
+
self._RequestId = None
|
|
8095
|
+
|
|
8096
|
+
@property
|
|
8097
|
+
def Detail(self):
|
|
8098
|
+
r"""引导脚本详情
|
|
8099
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8100
|
+
:rtype: :class:`tencentcloud.emr.v20190103.models.DescribeBootScriptRsp`
|
|
8101
|
+
"""
|
|
8102
|
+
return self._Detail
|
|
8103
|
+
|
|
8104
|
+
@Detail.setter
|
|
8105
|
+
def Detail(self, Detail):
|
|
8106
|
+
self._Detail = Detail
|
|
8107
|
+
|
|
8108
|
+
@property
|
|
8109
|
+
def RequestId(self):
|
|
8110
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8111
|
+
:rtype: str
|
|
8112
|
+
"""
|
|
8113
|
+
return self._RequestId
|
|
8114
|
+
|
|
8115
|
+
@RequestId.setter
|
|
8116
|
+
def RequestId(self, RequestId):
|
|
8117
|
+
self._RequestId = RequestId
|
|
8118
|
+
|
|
8119
|
+
|
|
8120
|
+
def _deserialize(self, params):
|
|
8121
|
+
if params.get("Detail") is not None:
|
|
8122
|
+
self._Detail = DescribeBootScriptRsp()
|
|
8123
|
+
self._Detail._deserialize(params.get("Detail"))
|
|
8124
|
+
self._RequestId = params.get("RequestId")
|
|
8125
|
+
|
|
8126
|
+
|
|
8127
|
+
class DescribeBootScriptRsp(AbstractModel):
|
|
8128
|
+
r"""引导脚本回包
|
|
8129
|
+
|
|
8130
|
+
"""
|
|
8131
|
+
|
|
8132
|
+
def __init__(self):
|
|
8133
|
+
r"""
|
|
8134
|
+
:param _ResourceAfter: 资源初始化结束自定义脚本文件
|
|
8135
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8136
|
+
:type ResourceAfter: list of PreExecuteFileSetting
|
|
8137
|
+
:param _ClusterBefore: 集群启动前自定义脚本文件
|
|
8138
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8139
|
+
:type ClusterBefore: list of PreExecuteFileSetting
|
|
8140
|
+
:param _ClusterAfter: 集群启动后自定义脚本文件
|
|
8141
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8142
|
+
:type ClusterAfter: list of PreExecuteFileSetting
|
|
8143
|
+
:param _ServiceBefore: 服务下线前自定义脚本
|
|
8144
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8145
|
+
:type ServiceBefore: list of PreExecuteFileSetting
|
|
8146
|
+
"""
|
|
8147
|
+
self._ResourceAfter = None
|
|
8148
|
+
self._ClusterBefore = None
|
|
8149
|
+
self._ClusterAfter = None
|
|
8150
|
+
self._ServiceBefore = None
|
|
8151
|
+
|
|
8152
|
+
@property
|
|
8153
|
+
def ResourceAfter(self):
|
|
8154
|
+
r"""资源初始化结束自定义脚本文件
|
|
8155
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8156
|
+
:rtype: list of PreExecuteFileSetting
|
|
8157
|
+
"""
|
|
8158
|
+
return self._ResourceAfter
|
|
8159
|
+
|
|
8160
|
+
@ResourceAfter.setter
|
|
8161
|
+
def ResourceAfter(self, ResourceAfter):
|
|
8162
|
+
self._ResourceAfter = ResourceAfter
|
|
8163
|
+
|
|
8164
|
+
@property
|
|
8165
|
+
def ClusterBefore(self):
|
|
8166
|
+
r"""集群启动前自定义脚本文件
|
|
8167
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8168
|
+
:rtype: list of PreExecuteFileSetting
|
|
8169
|
+
"""
|
|
8170
|
+
return self._ClusterBefore
|
|
8171
|
+
|
|
8172
|
+
@ClusterBefore.setter
|
|
8173
|
+
def ClusterBefore(self, ClusterBefore):
|
|
8174
|
+
self._ClusterBefore = ClusterBefore
|
|
8175
|
+
|
|
8176
|
+
@property
|
|
8177
|
+
def ClusterAfter(self):
|
|
8178
|
+
r"""集群启动后自定义脚本文件
|
|
8179
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8180
|
+
:rtype: list of PreExecuteFileSetting
|
|
8181
|
+
"""
|
|
8182
|
+
return self._ClusterAfter
|
|
8183
|
+
|
|
8184
|
+
@ClusterAfter.setter
|
|
8185
|
+
def ClusterAfter(self, ClusterAfter):
|
|
8186
|
+
self._ClusterAfter = ClusterAfter
|
|
8187
|
+
|
|
8188
|
+
@property
|
|
8189
|
+
def ServiceBefore(self):
|
|
8190
|
+
r"""服务下线前自定义脚本
|
|
8191
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8192
|
+
:rtype: list of PreExecuteFileSetting
|
|
8193
|
+
"""
|
|
8194
|
+
return self._ServiceBefore
|
|
8195
|
+
|
|
8196
|
+
@ServiceBefore.setter
|
|
8197
|
+
def ServiceBefore(self, ServiceBefore):
|
|
8198
|
+
self._ServiceBefore = ServiceBefore
|
|
8199
|
+
|
|
8200
|
+
|
|
8201
|
+
def _deserialize(self, params):
|
|
8202
|
+
if params.get("ResourceAfter") is not None:
|
|
8203
|
+
self._ResourceAfter = []
|
|
8204
|
+
for item in params.get("ResourceAfter"):
|
|
8205
|
+
obj = PreExecuteFileSetting()
|
|
8206
|
+
obj._deserialize(item)
|
|
8207
|
+
self._ResourceAfter.append(obj)
|
|
8208
|
+
if params.get("ClusterBefore") is not None:
|
|
8209
|
+
self._ClusterBefore = []
|
|
8210
|
+
for item in params.get("ClusterBefore"):
|
|
8211
|
+
obj = PreExecuteFileSetting()
|
|
8212
|
+
obj._deserialize(item)
|
|
8213
|
+
self._ClusterBefore.append(obj)
|
|
8214
|
+
if params.get("ClusterAfter") is not None:
|
|
8215
|
+
self._ClusterAfter = []
|
|
8216
|
+
for item in params.get("ClusterAfter"):
|
|
8217
|
+
obj = PreExecuteFileSetting()
|
|
8218
|
+
obj._deserialize(item)
|
|
8219
|
+
self._ClusterAfter.append(obj)
|
|
8220
|
+
if params.get("ServiceBefore") is not None:
|
|
8221
|
+
self._ServiceBefore = []
|
|
8222
|
+
for item in params.get("ServiceBefore"):
|
|
8223
|
+
obj = PreExecuteFileSetting()
|
|
8224
|
+
obj._deserialize(item)
|
|
8225
|
+
self._ServiceBefore.append(obj)
|
|
8226
|
+
memeber_set = set(params.keys())
|
|
8227
|
+
for name, value in vars(self).items():
|
|
8228
|
+
property_name = name[1:]
|
|
8229
|
+
if property_name in memeber_set:
|
|
8230
|
+
memeber_set.remove(property_name)
|
|
8231
|
+
if len(memeber_set) > 0:
|
|
8232
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8233
|
+
|
|
8234
|
+
|
|
8235
|
+
|
|
7999
8236
|
class DescribeClusterFlowStatusDetailRequest(AbstractModel):
|
|
8000
8237
|
r"""DescribeClusterFlowStatusDetail请求参数结构体
|
|
8001
8238
|
|
|
@@ -23206,6 +23443,105 @@ class ModifyAutoScaleStrategyResponse(AbstractModel):
|
|
|
23206
23443
|
self._RequestId = params.get("RequestId")
|
|
23207
23444
|
|
|
23208
23445
|
|
|
23446
|
+
class ModifyBootScriptRequest(AbstractModel):
|
|
23447
|
+
r"""ModifyBootScript请求参数结构体
|
|
23448
|
+
|
|
23449
|
+
"""
|
|
23450
|
+
|
|
23451
|
+
def __init__(self):
|
|
23452
|
+
r"""
|
|
23453
|
+
:param _InstanceId: EMR实例Id
|
|
23454
|
+
:type InstanceId: str
|
|
23455
|
+
:param _BootType: 引导脚本类型,resourceAfter,clusterAfter,clusterBefore
|
|
23456
|
+
:type BootType: str
|
|
23457
|
+
:param _PreExecutedFileSettings: 引导脚本的具体变更,如为空表示WhenRun时机无引导脚本
|
|
23458
|
+
:type PreExecutedFileSettings: list of PreExecuteFileSetting
|
|
23459
|
+
"""
|
|
23460
|
+
self._InstanceId = None
|
|
23461
|
+
self._BootType = None
|
|
23462
|
+
self._PreExecutedFileSettings = None
|
|
23463
|
+
|
|
23464
|
+
@property
|
|
23465
|
+
def InstanceId(self):
|
|
23466
|
+
r"""EMR实例Id
|
|
23467
|
+
:rtype: str
|
|
23468
|
+
"""
|
|
23469
|
+
return self._InstanceId
|
|
23470
|
+
|
|
23471
|
+
@InstanceId.setter
|
|
23472
|
+
def InstanceId(self, InstanceId):
|
|
23473
|
+
self._InstanceId = InstanceId
|
|
23474
|
+
|
|
23475
|
+
@property
|
|
23476
|
+
def BootType(self):
|
|
23477
|
+
r"""引导脚本类型,resourceAfter,clusterAfter,clusterBefore
|
|
23478
|
+
:rtype: str
|
|
23479
|
+
"""
|
|
23480
|
+
return self._BootType
|
|
23481
|
+
|
|
23482
|
+
@BootType.setter
|
|
23483
|
+
def BootType(self, BootType):
|
|
23484
|
+
self._BootType = BootType
|
|
23485
|
+
|
|
23486
|
+
@property
|
|
23487
|
+
def PreExecutedFileSettings(self):
|
|
23488
|
+
r"""引导脚本的具体变更,如为空表示WhenRun时机无引导脚本
|
|
23489
|
+
:rtype: list of PreExecuteFileSetting
|
|
23490
|
+
"""
|
|
23491
|
+
return self._PreExecutedFileSettings
|
|
23492
|
+
|
|
23493
|
+
@PreExecutedFileSettings.setter
|
|
23494
|
+
def PreExecutedFileSettings(self, PreExecutedFileSettings):
|
|
23495
|
+
self._PreExecutedFileSettings = PreExecutedFileSettings
|
|
23496
|
+
|
|
23497
|
+
|
|
23498
|
+
def _deserialize(self, params):
|
|
23499
|
+
self._InstanceId = params.get("InstanceId")
|
|
23500
|
+
self._BootType = params.get("BootType")
|
|
23501
|
+
if params.get("PreExecutedFileSettings") is not None:
|
|
23502
|
+
self._PreExecutedFileSettings = []
|
|
23503
|
+
for item in params.get("PreExecutedFileSettings"):
|
|
23504
|
+
obj = PreExecuteFileSetting()
|
|
23505
|
+
obj._deserialize(item)
|
|
23506
|
+
self._PreExecutedFileSettings.append(obj)
|
|
23507
|
+
memeber_set = set(params.keys())
|
|
23508
|
+
for name, value in vars(self).items():
|
|
23509
|
+
property_name = name[1:]
|
|
23510
|
+
if property_name in memeber_set:
|
|
23511
|
+
memeber_set.remove(property_name)
|
|
23512
|
+
if len(memeber_set) > 0:
|
|
23513
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23514
|
+
|
|
23515
|
+
|
|
23516
|
+
|
|
23517
|
+
class ModifyBootScriptResponse(AbstractModel):
|
|
23518
|
+
r"""ModifyBootScript返回参数结构体
|
|
23519
|
+
|
|
23520
|
+
"""
|
|
23521
|
+
|
|
23522
|
+
def __init__(self):
|
|
23523
|
+
r"""
|
|
23524
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23525
|
+
:type RequestId: str
|
|
23526
|
+
"""
|
|
23527
|
+
self._RequestId = None
|
|
23528
|
+
|
|
23529
|
+
@property
|
|
23530
|
+
def RequestId(self):
|
|
23531
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
23532
|
+
:rtype: str
|
|
23533
|
+
"""
|
|
23534
|
+
return self._RequestId
|
|
23535
|
+
|
|
23536
|
+
@RequestId.setter
|
|
23537
|
+
def RequestId(self, RequestId):
|
|
23538
|
+
self._RequestId = RequestId
|
|
23539
|
+
|
|
23540
|
+
|
|
23541
|
+
def _deserialize(self, params):
|
|
23542
|
+
self._RequestId = params.get("RequestId")
|
|
23543
|
+
|
|
23544
|
+
|
|
23209
23545
|
class ModifyGlobalConfigRequest(AbstractModel):
|
|
23210
23546
|
r"""ModifyGlobalConfig请求参数结构体
|
|
23211
23547
|
|
|
@@ -30681,6 +31017,222 @@ class PodVolume(AbstractModel):
|
|
|
30681
31017
|
|
|
30682
31018
|
|
|
30683
31019
|
|
|
31020
|
+
class PreExecuteFileSetting(AbstractModel):
|
|
31021
|
+
r"""预执行脚本配置
|
|
31022
|
+
|
|
31023
|
+
"""
|
|
31024
|
+
|
|
31025
|
+
def __init__(self):
|
|
31026
|
+
r"""
|
|
31027
|
+
:param _Path: 脚本在COS上路径
|
|
31028
|
+
:type Path: str
|
|
31029
|
+
:param _Args: 执行脚本参数
|
|
31030
|
+
:type Args: str
|
|
31031
|
+
:param _Bucket: COS的Bucket名称
|
|
31032
|
+
:type Bucket: str
|
|
31033
|
+
:param _Region: COS的Region名称
|
|
31034
|
+
:type Region: str
|
|
31035
|
+
:param _Domain: COS的Domain数据
|
|
31036
|
+
:type Domain: str
|
|
31037
|
+
:param _RunOrder: 执行顺序
|
|
31038
|
+
:type RunOrder: int
|
|
31039
|
+
:param _WhenRun: resourceAfter 或 clusterAfter
|
|
31040
|
+
:type WhenRun: str
|
|
31041
|
+
:param _CosFileName: 脚本文件名
|
|
31042
|
+
:type CosFileName: str
|
|
31043
|
+
:param _CosFileURI: 脚本的cos地址
|
|
31044
|
+
:type CosFileURI: str
|
|
31045
|
+
:param _CosSecretId: cos的SecretId
|
|
31046
|
+
:type CosSecretId: str
|
|
31047
|
+
:param _CosSecretKey: Cos的SecretKey
|
|
31048
|
+
:type CosSecretKey: str
|
|
31049
|
+
:param _AppId: cos的appid
|
|
31050
|
+
:type AppId: str
|
|
31051
|
+
:param _Remark: 备注
|
|
31052
|
+
:type Remark: str
|
|
31053
|
+
"""
|
|
31054
|
+
self._Path = None
|
|
31055
|
+
self._Args = None
|
|
31056
|
+
self._Bucket = None
|
|
31057
|
+
self._Region = None
|
|
31058
|
+
self._Domain = None
|
|
31059
|
+
self._RunOrder = None
|
|
31060
|
+
self._WhenRun = None
|
|
31061
|
+
self._CosFileName = None
|
|
31062
|
+
self._CosFileURI = None
|
|
31063
|
+
self._CosSecretId = None
|
|
31064
|
+
self._CosSecretKey = None
|
|
31065
|
+
self._AppId = None
|
|
31066
|
+
self._Remark = None
|
|
31067
|
+
|
|
31068
|
+
@property
|
|
31069
|
+
def Path(self):
|
|
31070
|
+
r"""脚本在COS上路径
|
|
31071
|
+
:rtype: str
|
|
31072
|
+
"""
|
|
31073
|
+
return self._Path
|
|
31074
|
+
|
|
31075
|
+
@Path.setter
|
|
31076
|
+
def Path(self, Path):
|
|
31077
|
+
self._Path = Path
|
|
31078
|
+
|
|
31079
|
+
@property
|
|
31080
|
+
def Args(self):
|
|
31081
|
+
r"""执行脚本参数
|
|
31082
|
+
:rtype: str
|
|
31083
|
+
"""
|
|
31084
|
+
return self._Args
|
|
31085
|
+
|
|
31086
|
+
@Args.setter
|
|
31087
|
+
def Args(self, Args):
|
|
31088
|
+
self._Args = Args
|
|
31089
|
+
|
|
31090
|
+
@property
|
|
31091
|
+
def Bucket(self):
|
|
31092
|
+
r"""COS的Bucket名称
|
|
31093
|
+
:rtype: str
|
|
31094
|
+
"""
|
|
31095
|
+
return self._Bucket
|
|
31096
|
+
|
|
31097
|
+
@Bucket.setter
|
|
31098
|
+
def Bucket(self, Bucket):
|
|
31099
|
+
self._Bucket = Bucket
|
|
31100
|
+
|
|
31101
|
+
@property
|
|
31102
|
+
def Region(self):
|
|
31103
|
+
r"""COS的Region名称
|
|
31104
|
+
:rtype: str
|
|
31105
|
+
"""
|
|
31106
|
+
return self._Region
|
|
31107
|
+
|
|
31108
|
+
@Region.setter
|
|
31109
|
+
def Region(self, Region):
|
|
31110
|
+
self._Region = Region
|
|
31111
|
+
|
|
31112
|
+
@property
|
|
31113
|
+
def Domain(self):
|
|
31114
|
+
r"""COS的Domain数据
|
|
31115
|
+
:rtype: str
|
|
31116
|
+
"""
|
|
31117
|
+
return self._Domain
|
|
31118
|
+
|
|
31119
|
+
@Domain.setter
|
|
31120
|
+
def Domain(self, Domain):
|
|
31121
|
+
self._Domain = Domain
|
|
31122
|
+
|
|
31123
|
+
@property
|
|
31124
|
+
def RunOrder(self):
|
|
31125
|
+
r"""执行顺序
|
|
31126
|
+
:rtype: int
|
|
31127
|
+
"""
|
|
31128
|
+
return self._RunOrder
|
|
31129
|
+
|
|
31130
|
+
@RunOrder.setter
|
|
31131
|
+
def RunOrder(self, RunOrder):
|
|
31132
|
+
self._RunOrder = RunOrder
|
|
31133
|
+
|
|
31134
|
+
@property
|
|
31135
|
+
def WhenRun(self):
|
|
31136
|
+
r"""resourceAfter 或 clusterAfter
|
|
31137
|
+
:rtype: str
|
|
31138
|
+
"""
|
|
31139
|
+
return self._WhenRun
|
|
31140
|
+
|
|
31141
|
+
@WhenRun.setter
|
|
31142
|
+
def WhenRun(self, WhenRun):
|
|
31143
|
+
self._WhenRun = WhenRun
|
|
31144
|
+
|
|
31145
|
+
@property
|
|
31146
|
+
def CosFileName(self):
|
|
31147
|
+
r"""脚本文件名
|
|
31148
|
+
:rtype: str
|
|
31149
|
+
"""
|
|
31150
|
+
return self._CosFileName
|
|
31151
|
+
|
|
31152
|
+
@CosFileName.setter
|
|
31153
|
+
def CosFileName(self, CosFileName):
|
|
31154
|
+
self._CosFileName = CosFileName
|
|
31155
|
+
|
|
31156
|
+
@property
|
|
31157
|
+
def CosFileURI(self):
|
|
31158
|
+
r"""脚本的cos地址
|
|
31159
|
+
:rtype: str
|
|
31160
|
+
"""
|
|
31161
|
+
return self._CosFileURI
|
|
31162
|
+
|
|
31163
|
+
@CosFileURI.setter
|
|
31164
|
+
def CosFileURI(self, CosFileURI):
|
|
31165
|
+
self._CosFileURI = CosFileURI
|
|
31166
|
+
|
|
31167
|
+
@property
|
|
31168
|
+
def CosSecretId(self):
|
|
31169
|
+
r"""cos的SecretId
|
|
31170
|
+
:rtype: str
|
|
31171
|
+
"""
|
|
31172
|
+
return self._CosSecretId
|
|
31173
|
+
|
|
31174
|
+
@CosSecretId.setter
|
|
31175
|
+
def CosSecretId(self, CosSecretId):
|
|
31176
|
+
self._CosSecretId = CosSecretId
|
|
31177
|
+
|
|
31178
|
+
@property
|
|
31179
|
+
def CosSecretKey(self):
|
|
31180
|
+
r"""Cos的SecretKey
|
|
31181
|
+
:rtype: str
|
|
31182
|
+
"""
|
|
31183
|
+
return self._CosSecretKey
|
|
31184
|
+
|
|
31185
|
+
@CosSecretKey.setter
|
|
31186
|
+
def CosSecretKey(self, CosSecretKey):
|
|
31187
|
+
self._CosSecretKey = CosSecretKey
|
|
31188
|
+
|
|
31189
|
+
@property
|
|
31190
|
+
def AppId(self):
|
|
31191
|
+
r"""cos的appid
|
|
31192
|
+
:rtype: str
|
|
31193
|
+
"""
|
|
31194
|
+
return self._AppId
|
|
31195
|
+
|
|
31196
|
+
@AppId.setter
|
|
31197
|
+
def AppId(self, AppId):
|
|
31198
|
+
self._AppId = AppId
|
|
31199
|
+
|
|
31200
|
+
@property
|
|
31201
|
+
def Remark(self):
|
|
31202
|
+
r"""备注
|
|
31203
|
+
:rtype: str
|
|
31204
|
+
"""
|
|
31205
|
+
return self._Remark
|
|
31206
|
+
|
|
31207
|
+
@Remark.setter
|
|
31208
|
+
def Remark(self, Remark):
|
|
31209
|
+
self._Remark = Remark
|
|
31210
|
+
|
|
31211
|
+
|
|
31212
|
+
def _deserialize(self, params):
|
|
31213
|
+
self._Path = params.get("Path")
|
|
31214
|
+
self._Args = params.get("Args")
|
|
31215
|
+
self._Bucket = params.get("Bucket")
|
|
31216
|
+
self._Region = params.get("Region")
|
|
31217
|
+
self._Domain = params.get("Domain")
|
|
31218
|
+
self._RunOrder = params.get("RunOrder")
|
|
31219
|
+
self._WhenRun = params.get("WhenRun")
|
|
31220
|
+
self._CosFileName = params.get("CosFileName")
|
|
31221
|
+
self._CosFileURI = params.get("CosFileURI")
|
|
31222
|
+
self._CosSecretId = params.get("CosSecretId")
|
|
31223
|
+
self._CosSecretKey = params.get("CosSecretKey")
|
|
31224
|
+
self._AppId = params.get("AppId")
|
|
31225
|
+
self._Remark = params.get("Remark")
|
|
31226
|
+
memeber_set = set(params.keys())
|
|
31227
|
+
for name, value in vars(self).items():
|
|
31228
|
+
property_name = name[1:]
|
|
31229
|
+
if property_name in memeber_set:
|
|
31230
|
+
memeber_set.remove(property_name)
|
|
31231
|
+
if len(memeber_set) > 0:
|
|
31232
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
31233
|
+
|
|
31234
|
+
|
|
31235
|
+
|
|
30684
31236
|
class PreExecuteFileSettings(AbstractModel):
|
|
30685
31237
|
r"""预执行脚本配置
|
|
30686
31238
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-emr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.81
|
|
4
4
|
Summary: Tencent Cloud Emr SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.81
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.81
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.72
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|