tencentcloud-sdk-python-emr 3.0.1410__tar.gz → 3.0.1413__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/setup.py +1 -1
  3. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud/emr/v20190103/emr_client.py +69 -0
  5. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud/emr/v20190103/errorcodes.py +54 -0
  6. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud/emr/v20190103/models.py +1536 -98
  7. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud_sdk_python_emr.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-emr-3.0.1413/tencentcloud_sdk_python_emr.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-emr-3.0.1410/tencentcloud_sdk_python_emr.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/README.rst +0 -0
  11. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud/emr/__init__.py +0 -0
  13. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud/emr/v20190103/__init__.py +0 -0
  14. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud_sdk_python_emr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud_sdk_python_emr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-emr-3.0.1410 → tencentcloud-sdk-python-emr-3.0.1413}/tencentcloud_sdk_python_emr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-emr
3
- Version: 3.0.1410
3
+ Version: 3.0.1413
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
@@ -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.0.1410"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1413"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Emr SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1410'
17
+ __version__ = '3.0.1413'
@@ -119,6 +119,29 @@ class EmrClient(AbstractClient):
119
119
  raise TencentCloudSDKException(type(e).__name__, str(e))
120
120
 
121
121
 
122
+ def ConvertPreToPostCluster(self, request):
123
+ """包月集群转按量集群(不含cdb)
124
+
125
+ :param request: Request instance for ConvertPreToPostCluster.
126
+ :type request: :class:`tencentcloud.emr.v20190103.models.ConvertPreToPostClusterRequest`
127
+ :rtype: :class:`tencentcloud.emr.v20190103.models.ConvertPreToPostClusterResponse`
128
+
129
+ """
130
+ try:
131
+ params = request._serialize()
132
+ headers = request.headers
133
+ body = self.call("ConvertPreToPostCluster", params, headers=headers)
134
+ response = json.loads(body)
135
+ model = models.ConvertPreToPostClusterResponse()
136
+ model._deserialize(response["Response"])
137
+ return model
138
+ except Exception as e:
139
+ if isinstance(e, TencentCloudSDKException):
140
+ raise
141
+ else:
142
+ raise TencentCloudSDKException(type(e).__name__, str(e))
143
+
144
+
122
145
  def CreateCloudInstance(self, request):
123
146
  """创建EMR容器集群实例
124
147
 
@@ -903,6 +926,29 @@ class EmrClient(AbstractClient):
903
926
  raise TencentCloudSDKException(type(e).__name__, str(e))
904
927
 
905
928
 
929
+ def DescribeNodeSpec(self, request):
930
+ """查询节点规格
931
+
932
+ :param request: Request instance for DescribeNodeSpec.
933
+ :type request: :class:`tencentcloud.emr.v20190103.models.DescribeNodeSpecRequest`
934
+ :rtype: :class:`tencentcloud.emr.v20190103.models.DescribeNodeSpecResponse`
935
+
936
+ """
937
+ try:
938
+ params = request._serialize()
939
+ headers = request.headers
940
+ body = self.call("DescribeNodeSpec", params, headers=headers)
941
+ response = json.loads(body)
942
+ model = models.DescribeNodeSpecResponse()
943
+ model._deserialize(response["Response"])
944
+ return model
945
+ except Exception as e:
946
+ if isinstance(e, TencentCloudSDKException):
947
+ raise
948
+ else:
949
+ raise TencentCloudSDKException(type(e).__name__, str(e))
950
+
951
+
906
952
  def DescribeResourceSchedule(self, request):
907
953
  """查询YARN资源调度数据信息。已废弃,请使用`DescribeYarnQueue`去查询队列信息。
908
954
 
@@ -995,6 +1041,29 @@ class EmrClient(AbstractClient):
995
1041
  raise TencentCloudSDKException(type(e).__name__, str(e))
996
1042
 
997
1043
 
1044
+ def DescribeServiceConfGroupInfos(self, request):
1045
+ """描述服务配置组信息
1046
+
1047
+ :param request: Request instance for DescribeServiceConfGroupInfos.
1048
+ :type request: :class:`tencentcloud.emr.v20190103.models.DescribeServiceConfGroupInfosRequest`
1049
+ :rtype: :class:`tencentcloud.emr.v20190103.models.DescribeServiceConfGroupInfosResponse`
1050
+
1051
+ """
1052
+ try:
1053
+ params = request._serialize()
1054
+ headers = request.headers
1055
+ body = self.call("DescribeServiceConfGroupInfos", params, headers=headers)
1056
+ response = json.loads(body)
1057
+ model = models.DescribeServiceConfGroupInfosResponse()
1058
+ model._deserialize(response["Response"])
1059
+ return model
1060
+ except Exception as e:
1061
+ if isinstance(e, TencentCloudSDKException):
1062
+ raise
1063
+ else:
1064
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1065
+
1066
+
998
1067
  def DescribeServiceNodeInfos(self, request):
999
1068
  """查询服务进程信息
1000
1069
 
@@ -14,6 +14,9 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
+ # CAM签名/鉴权错误。
18
+ AUTHFAILURE = 'AuthFailure'
19
+
17
20
  # 操作失败。
18
21
  FAILEDOPERATION = 'FailedOperation'
19
22
 
@@ -47,12 +50,18 @@ FAILEDOPERATION_GETTRADESERVERFAILED = 'FailedOperation.GetTradeServerFailed'
47
50
  # 不允许更多的扩缩容规则。
48
51
  FAILEDOPERATION_MORESTRATEGYNOTALLOWED = 'FailedOperation.MoreStrategyNotAllowed'
49
52
 
53
+ # 未授权操作。
54
+ FAILEDOPERATION_NOTAUTHENTICATED = 'FailedOperation.NotAuthenticated'
55
+
50
56
  # 操作失败,不支持pod。
51
57
  FAILEDOPERATION_NOTSUPPORTPOD = 'FailedOperation.NotSupportPod'
52
58
 
53
59
  # 操作失败。
54
60
  FAILEDOPERATION_REFUNDCVMFAILED = 'FailedOperation.RefundCvmFailed'
55
61
 
62
+ # 操作失败。
63
+ FAILEDOPERATION_SPECDELETEDENYFORAUTOSCALESTRATEGIES = 'FailedOperation.SpecDeleteDenyForAutoScaleStrategies'
64
+
56
65
  # 内部错误。
57
66
  INTERNALERROR = 'InternalError'
58
67
 
@@ -131,6 +140,9 @@ INVALIDPARAMETER = 'InvalidParameter'
131
140
  # 参数错误。
132
141
  INVALIDPARAMETER_APPIDRESOURCENOTMATCH = 'InvalidParameter.AppIdResourceNotMatch'
133
142
 
143
+ # CpuType参数无效。
144
+ INVALIDPARAMETER_CPUTYPE = 'InvalidParameter.CpuType'
145
+
134
146
  # 展示策略错误。
135
147
  INVALIDPARAMETER_DISPLAYSTRATEGYNOTMATCH = 'InvalidParameter.DisplayStrategyNotMatch'
136
148
 
@@ -404,6 +416,9 @@ INVALIDPARAMETER_INVALIDUINNUM = 'InvalidParameter.InvalidUinNum'
404
416
  # 无效的统一元数据库。
405
417
  INVALIDPARAMETER_INVALIDUNIFYMETA = 'InvalidParameter.InvalidUnifyMeta'
406
418
 
419
+ # 参数错误。
420
+ INVALIDPARAMETER_INVALIDVENDORTYPE = 'InvalidParameter.InvalidVendorType'
421
+
407
422
  # 参数错误。
408
423
  INVALIDPARAMETER_INVALIDVOLUMETYPE = 'InvalidParameter.InvalidVolumeType'
409
424
 
@@ -416,6 +431,15 @@ INVALIDPARAMETER_INVALIDZONE = 'InvalidParameter.InvalidZone'
416
431
  # 不合法的支持Kerberos标识。
417
432
  INVALIDPARAMETER_KERBEROSSUPPORT = 'InvalidParameter.KerberosSupport'
418
433
 
434
+ # 参数错误。
435
+ INVALIDPARAMETER_LESSCOMMONCOUNT = 'InvalidParameter.LessCommonCount'
436
+
437
+ # 参数错误。
438
+ INVALIDPARAMETER_LESSTASKCOUNT = 'InvalidParameter.LessTaskCount'
439
+
440
+ # 超过cvm实例最大限制个数。
441
+ INVALIDPARAMETER_MOREMAXLIMITNUM = 'InvalidParameter.MoreMaxlimitNum'
442
+
419
443
  # 无效参数,不满足必须组件。
420
444
  INVALIDPARAMETER_NOTCONTAINMUSTSELECTSOFTWARE = 'InvalidParameter.NotContainMustSelectSoftware'
421
445
 
@@ -434,6 +458,15 @@ INVALIDPARAMETER_REPEATEDEXECUTIONTIME = 'InvalidParameter.RepeatedExecutionTime
434
458
  # 扩缩容规则名重复。
435
459
  INVALIDPARAMETER_REPEATEDSTRATEGYNAME = 'InvalidParameter.RepeatedStrategyName'
436
460
 
461
+ # ResourceProviderType参数无效。
462
+ INVALIDPARAMETER_RESOURCEPROVIDERTYPE = 'InvalidParameter.ResourceProviderType'
463
+
464
+ # 该服务不支持重启。
465
+ INVALIDPARAMETER_RESTARTSERVICEUNSUPPORTED = 'InvalidParameter.RestartServiceUnsupported'
466
+
467
+ # 存在无效的产品组件。
468
+ INVALIDPARAMETER_SOFTWARENOTINPRODUCR = 'InvalidParameter.SoftwareNotInProducr'
469
+
437
470
  # 存在无效的产品组件。
438
471
  INVALIDPARAMETER_SOFTWARENOTINPRODUCT = 'InvalidParameter.SoftwareNotInProduct'
439
472
 
@@ -443,6 +476,9 @@ INVALIDPARAMETER_UNGRANTEDPOLICY = 'InvalidParameter.UngrantedPolicy'
443
476
  # 角色未授权。
444
477
  INVALIDPARAMETER_UNGRANTEDROLE = 'InvalidParameter.UngrantedRole'
445
478
 
479
+ # 参数错误。
480
+ INVALIDPARAMETER_UNSATISFIEDSOFTDEPENDECY = 'InvalidParameter.UnsatisfiedSoftDependecy'
481
+
446
482
  # 可用区与资源不匹配。
447
483
  INVALIDPARAMETER_ZONERESOURCENOTMATCH = 'InvalidParameter.ZoneResourceNotMatch'
448
484
 
@@ -452,6 +488,9 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
452
488
  # 无效的Tke集群ID,或Tke集群不符合条件。
453
489
  INVALIDPARAMETERVALUE_INVALIDTKEINSTANCE = 'InvalidParameterValue.InvalidTkeInstance'
454
490
 
491
+ # 超过配额限制。
492
+ LIMITEXCEEDED = 'LimitExceeded'
493
+
455
494
  # 引导脚本数量超过限制。
456
495
  LIMITEXCEEDED_BOOTSTRAPACTIONSNUMLIMITEXCEEDED = 'LimitExceeded.BootstrapActionsNumLimitExceeded'
457
496
 
@@ -476,6 +515,15 @@ LIMITEXCEEDED_USERCOUNTEXCEEDSLIMIT = 'LimitExceeded.UserCountExceedsLimit'
476
515
  # 缺少参数错误。
477
516
  MISSINGPARAMETER = 'MissingParameter'
478
517
 
518
+ # 缺少参数错误。
519
+ MISSINGPARAMETER_MISSINGCORERESOURCE = 'MissingParameter.MissingCoreResource'
520
+
521
+ # 操作被拒绝。
522
+ OPERATIONDENIED = 'OperationDenied'
523
+
524
+ # 请求的次数超过了频率限制。
525
+ REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
526
+
479
527
  # 实例在流程中。
480
528
  RESOURCEINUSE_INSTANCEINPROCESS = 'ResourceInUse.InstanceInProcess'
481
529
 
@@ -509,6 +557,9 @@ RESOURCENOTFOUND_RESOURCENOTFOUND = 'ResourceNotFound.ResourceNotFound'
509
557
  # 无法找到该服务组件。
510
558
  RESOURCENOTFOUND_SERVICEGROUPNOTFOUND = 'ResourceNotFound.ServiceGroupNotFound'
511
559
 
560
+ # 不存在的规格。
561
+ RESOURCENOTFOUND_SPECNOTFOUND = 'ResourceNotFound.SpecNotFound'
562
+
512
563
  # 未找到相应扩缩容规则。
513
564
  RESOURCENOTFOUND_STRATEGYNOTFOUND = 'ResourceNotFound.StrategyNotFound'
514
565
 
@@ -524,6 +575,9 @@ RESOURCENOTFOUND_TAGSNOTFOUND = 'ResourceNotFound.TagsNotFound'
524
575
  # 资源不可用。
525
576
  RESOURCEUNAVAILABLE_NOTSUPPORTCLUSTERTYPE = 'ResourceUnavailable.NotSupportClusterType'
526
577
 
578
+ # 资源不可用。
579
+ RESOURCEUNAVAILABLE_NOTSUPPORTNODETYPE = 'ResourceUnavailable.NotSupportNodeType'
580
+
527
581
  # 资源不可用。
528
582
  RESOURCEUNAVAILABLE_NOTSUPPORTRESOURCETYPE = 'ResourceUnavailable.NotSupportResourceType'
529
583