tccli 3.0.1108.1__py2.py3-none-any.whl → 3.0.1110.1__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.
Files changed (57) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/bi/v20220105/CreateEmbedToken.md +4 -2
  3. tccli/examples/cam/v20190116/CreateRole.md +1 -1
  4. tccli/examples/ccc/v20200210/CreateCompanyApply.md +10 -3
  5. tccli/examples/ccc/v20200210/DescribeCompanyList.md +2 -1
  6. tccli/examples/ccc/v20200210/ModifyCompanyApply.md +10 -3
  7. tccli/examples/emr/v20190103/DescribeEmrOverviewMetrics.md +40 -0
  8. tccli/examples/emr/v20190103/DescribeHBaseTableOverview.md +94 -0
  9. tccli/examples/ims/v20200713/ImageModeration.md +2 -2
  10. tccli/examples/ims/v20201229/ImageModeration.md +2 -2
  11. tccli/examples/vcg/v20240404/DescribeVideoStylizationJob.md +24 -0
  12. tccli/examples/vcg/v20240404/SubmitVideoStylizationJob.md +22 -0
  13. tccli/examples/vtc/v20240223/ConfirmVideoTranslateJob.md +33 -0
  14. tccli/examples/vtc/v20240223/DescribeVideoTranslateJob.md +70 -0
  15. tccli/examples/vtc/v20240223/SubmitVideoTranslateJob.md +49 -0
  16. tccli/services/__init__.py +6 -0
  17. tccli/services/autoscaling/v20180419/api.json +9 -8
  18. tccli/services/bi/v20220105/api.json +22 -3
  19. tccli/services/bi/v20220105/examples.json +2 -2
  20. tccli/services/cam/v20190116/api.json +71 -70
  21. tccli/services/cam/v20190116/examples.json +1 -1
  22. tccli/services/ccc/v20200210/api.json +99 -11
  23. tccli/services/ccc/v20200210/examples.json +3 -3
  24. tccli/services/cfw/v20190904/api.json +1 -1
  25. tccli/services/ckafka/v20190819/api.json +33 -13
  26. tccli/services/cls/v20201016/api.json +10 -10
  27. tccli/services/cvm/v20170312/api.json +33 -0
  28. tccli/services/dbbrain/v20210527/api.json +5 -5
  29. tccli/services/emr/emr_client.py +114 -8
  30. tccli/services/emr/v20190103/api.json +493 -0
  31. tccli/services/emr/v20190103/examples.json +16 -0
  32. tccli/services/hunyuan/v20230901/api.json +9 -0
  33. tccli/services/ims/v20200713/api.json +1 -1
  34. tccli/services/ims/v20200713/examples.json +1 -1
  35. tccli/services/ims/v20201229/api.json +1 -1
  36. tccli/services/ims/v20201229/examples.json +1 -1
  37. tccli/services/ms/v20180408/api.json +1 -1
  38. tccli/services/rce/rce_client.py +0 -53
  39. tccli/services/rce/v20201103/api.json +10 -34
  40. tccli/services/rce/v20201103/examples.json +0 -8
  41. tccli/services/tcss/v20201101/api.json +5 -5
  42. tccli/services/tdmq/v20200217/api.json +7 -7
  43. tccli/services/trtc/v20190722/api.json +20 -11
  44. tccli/services/vcg/__init__.py +4 -0
  45. tccli/services/vcg/v20240404/api.json +140 -0
  46. tccli/services/vcg/v20240404/examples.json +21 -0
  47. tccli/services/vcg/vcg_client.py +248 -0
  48. tccli/services/vod/v20180717/api.json +9 -0
  49. tccli/services/vtc/__init__.py +4 -0
  50. tccli/services/vtc/v20240223/api.json +425 -0
  51. tccli/services/vtc/v20240223/examples.json +41 -0
  52. tccli/services/vtc/vtc_client.py +301 -0
  53. {tccli-3.0.1108.1.dist-info → tccli-3.0.1110.1.dist-info}/METADATA +2 -2
  54. {tccli-3.0.1108.1.dist-info → tccli-3.0.1110.1.dist-info}/RECORD +57 -42
  55. {tccli-3.0.1108.1.dist-info → tccli-3.0.1110.1.dist-info}/WHEEL +0 -0
  56. {tccli-3.0.1108.1.dist-info → tccli-3.0.1110.1.dist-info}/entry_points.txt +0 -0
  57. {tccli-3.0.1108.1.dist-info → tccli-3.0.1110.1.dist-info}/license_files/LICENSE +0 -0
@@ -3063,6 +3063,15 @@
3063
3063
  "name": "KafkaConnectParam",
3064
3064
  "required": false,
3065
3065
  "type": "object"
3066
+ },
3067
+ {
3068
+ "disabled": false,
3069
+ "document": "MQTT配置,Type为 MQTT 时必填",
3070
+ "example": "xxx",
3071
+ "member": "MqttConnectParam",
3072
+ "name": "MqttConnectParam",
3073
+ "required": false,
3074
+ "type": "object"
3066
3075
  }
3067
3076
  ],
3068
3077
  "type": "object"
@@ -3076,6 +3085,7 @@
3076
3085
  "example": "xxx",
3077
3086
  "member": "ConnectResourceResourceIdResp",
3078
3087
  "name": "Result",
3088
+ "output_required": true,
3079
3089
  "type": "object",
3080
3090
  "value_allowed_null": false
3081
3091
  },
@@ -5099,7 +5109,7 @@
5099
5109
  "example": "task-xxx",
5100
5110
  "member": "string",
5101
5111
  "name": "TaskId",
5102
- "required": true,
5112
+ "output_required": true,
5103
5113
  "type": "string",
5104
5114
  "value_allowed_null": false
5105
5115
  },
@@ -5109,7 +5119,7 @@
5109
5119
  "example": "xxx",
5110
5120
  "member": "string",
5111
5121
  "name": "TaskName",
5112
- "required": true,
5122
+ "output_required": true,
5113
5123
  "type": "string",
5114
5124
  "value_allowed_null": false
5115
5125
  },
@@ -5119,7 +5129,7 @@
5119
5129
  "example": "SINK",
5120
5130
  "member": "string",
5121
5131
  "name": "TaskType",
5122
- "required": true,
5132
+ "output_required": true,
5123
5133
  "type": "string",
5124
5134
  "value_allowed_null": false
5125
5135
  },
@@ -5129,7 +5139,7 @@
5129
5139
  "example": "1",
5130
5140
  "member": "int64",
5131
5141
  "name": "Status",
5132
- "required": true,
5142
+ "output_required": true,
5133
5143
  "type": "int",
5134
5144
  "value_allowed_null": false
5135
5145
  },
@@ -5139,7 +5149,7 @@
5139
5149
  "example": "xxx",
5140
5150
  "member": "DatahubResource",
5141
5151
  "name": "SourceResource",
5142
- "required": true,
5152
+ "output_required": true,
5143
5153
  "type": "object",
5144
5154
  "value_allowed_null": true
5145
5155
  },
@@ -5149,7 +5159,7 @@
5149
5159
  "example": "xxx",
5150
5160
  "member": "DatahubResource",
5151
5161
  "name": "TargetResource",
5152
- "required": true,
5162
+ "output_required": true,
5153
5163
  "type": "object",
5154
5164
  "value_allowed_null": true
5155
5165
  },
@@ -5159,7 +5169,7 @@
5159
5169
  "example": "xxxx",
5160
5170
  "member": "string",
5161
5171
  "name": "CreateTime",
5162
- "required": true,
5172
+ "output_required": true,
5163
5173
  "type": "string",
5164
5174
  "value_allowed_null": true
5165
5175
  },
@@ -5169,7 +5179,7 @@
5169
5179
  "example": "xxxx",
5170
5180
  "member": "string",
5171
5181
  "name": "ErrorMessage",
5172
- "required": true,
5182
+ "output_required": true,
5173
5183
  "type": "string",
5174
5184
  "value_allowed_null": true
5175
5185
  },
@@ -5179,7 +5189,7 @@
5179
5189
  "example": "90",
5180
5190
  "member": "float",
5181
5191
  "name": "TaskProgress",
5182
- "required": true,
5192
+ "output_required": true,
5183
5193
  "type": "float",
5184
5194
  "value_allowed_null": true
5185
5195
  },
@@ -5189,7 +5199,7 @@
5189
5199
  "example": "等待连接",
5190
5200
  "member": "string",
5191
5201
  "name": "TaskCurrentStep",
5192
- "required": true,
5202
+ "output_required": true,
5193
5203
  "type": "string",
5194
5204
  "value_allowed_null": true
5195
5205
  },
@@ -5199,7 +5209,7 @@
5199
5209
  "example": "datahub-xxx",
5200
5210
  "member": "string",
5201
5211
  "name": "DatahubId",
5202
- "required": true,
5212
+ "output_required": true,
5203
5213
  "type": "string",
5204
5214
  "value_allowed_null": true
5205
5215
  },
@@ -5209,7 +5219,7 @@
5209
5219
  "example": "xxx",
5210
5220
  "member": "string",
5211
5221
  "name": "StepList",
5212
- "required": true,
5222
+ "output_required": false,
5213
5223
  "type": "list",
5214
5224
  "value_allowed_null": true
5215
5225
  }
@@ -6357,7 +6367,7 @@
6357
6367
  "example": "xxx",
6358
6368
  "member": "string",
6359
6369
  "name": "StepList",
6360
- "output_required": true,
6370
+ "output_required": false,
6361
6371
  "type": "list",
6362
6372
  "value_allowed_null": true
6363
6373
  },
@@ -12890,6 +12900,15 @@
12890
12900
  "name": "KafkaConnectParam",
12891
12901
  "required": false,
12892
12902
  "type": "object"
12903
+ },
12904
+ {
12905
+ "disabled": false,
12906
+ "document": "MQTT配置,Type为 MQTT 时必填",
12907
+ "example": "xxx",
12908
+ "member": "MqttConnectParam",
12909
+ "name": "MqttConnectParam",
12910
+ "required": false,
12911
+ "type": "object"
12893
12912
  }
12894
12913
  ],
12895
12914
  "type": "object"
@@ -12903,6 +12922,7 @@
12903
12922
  "example": "xxx",
12904
12923
  "member": "ConnectResourceResourceIdResp",
12905
12924
  "name": "Result",
12925
+ "output_required": true,
12906
12926
  "type": "object",
12907
12927
  "value_allowed_null": false
12908
12928
  },
@@ -3631,20 +3631,20 @@
3631
3631
  },
3632
3632
  {
3633
3633
  "disabled": false,
3634
- "document": "COS文件所在文件夹的前缀",
3635
- "example": "var/xxx",
3634
+ "document": "采集的日志类型,json_log代表json格式日志,delimiter_log代表分隔符格式日志,minimalist_log代表单行全文;\n默认为minimalist_log",
3635
+ "example": "minimalist_log",
3636
3636
  "member": "string",
3637
- "name": "Prefix",
3637
+ "name": "LogType",
3638
3638
  "required": true,
3639
3639
  "type": "string"
3640
3640
  },
3641
3641
  {
3642
3642
  "disabled": false,
3643
- "document": "采集的日志类型,json_log代表json格式日志,delimiter_log代表分隔符格式日志,minimalist_log代表单行全文;\n默认为minimalist_log",
3644
- "example": "minimalist_log",
3643
+ "document": "COS文件所在文件夹的前缀。默认为空,投递存储桶下所有的文件。",
3644
+ "example": "var/xxx",
3645
3645
  "member": "string",
3646
- "name": "LogType",
3647
- "required": true,
3646
+ "name": "Prefix",
3647
+ "required": false,
3648
3648
  "type": "string"
3649
3649
  },
3650
3650
  {
@@ -10449,7 +10449,7 @@
10449
10449
  },
10450
10450
  {
10451
10451
  "disabled": false,
10452
- "document": "COS文件所在文件夹的前缀",
10452
+ "document": "COS文件所在文件夹的前缀。为空串时投递存储桶下所有的文件。",
10453
10453
  "example": "var/xxx",
10454
10454
  "member": "string",
10455
10455
  "name": "Prefix",
@@ -12544,11 +12544,11 @@
12544
12544
  },
12545
12545
  {
12546
12546
  "disabled": false,
12547
- "document": "cos文件所在文件夹的前缀",
12547
+ "document": "COS文件所在文件夹的前缀。默认为空,投递存储桶下所有的文件。",
12548
12548
  "example": "var/xxx",
12549
12549
  "member": "string",
12550
12550
  "name": "Prefix",
12551
- "required": true,
12551
+ "required": false,
12552
12552
  "type": "string"
12553
12553
  },
12554
12554
  {
@@ -1376,6 +1376,30 @@
1376
1376
  ],
1377
1377
  "type": "object"
1378
1378
  },
1379
+ "CpuTopology": {
1380
+ "document": "描述了实例CPU拓扑结构的相关信息。",
1381
+ "members": [
1382
+ {
1383
+ "disabled": false,
1384
+ "document": "决定启用的CPU物理核心数。",
1385
+ "example": "4",
1386
+ "member": "int64",
1387
+ "name": "CoreCount",
1388
+ "required": false,
1389
+ "type": "int"
1390
+ },
1391
+ {
1392
+ "disabled": false,
1393
+ "document": "每核心线程数。该参数决定是否开启或关闭超线程。<br><li>1 表示关闭超线程 </li><br><li>2 表示开启超线程</li>\n 不设置时,实例使用默认的超线程策略。开关超线程请参考文档:[开启与关闭超线程](https://cloud.tencent.com/document/product/213/103798)。",
1394
+ "example": "2",
1395
+ "member": "int64",
1396
+ "name": "ThreadPerCore",
1397
+ "required": false,
1398
+ "type": "int"
1399
+ }
1400
+ ],
1401
+ "usage": "in"
1402
+ },
1379
1403
  "CreateDisasterRecoverGroupRequest": {
1380
1404
  "document": "CreateDisasterRecoverGroup请求参数结构体",
1381
1405
  "members": [
@@ -11015,6 +11039,15 @@
11015
11039
  "required": false,
11016
11040
  "type": "bool"
11017
11041
  },
11042
+ {
11043
+ "disabled": false,
11044
+ "document": "描述了实例CPU拓扑结构的相关信息。若不指定该参数,则按系统资源情况决定。",
11045
+ "example": "无",
11046
+ "member": "CpuTopology",
11047
+ "name": "CpuTopology",
11048
+ "required": false,
11049
+ "type": "object"
11050
+ },
11018
11051
  {
11019
11052
  "disabled": false,
11020
11053
  "document": "CAM角色名称。可通过[`DescribeRoleList`](https://cloud.tencent.com/document/product/598/13887)接口返回值中的`roleName`获取。",
@@ -3040,7 +3040,7 @@
3040
3040
  },
3041
3041
  {
3042
3042
  "disabled": false,
3043
- "document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,默认为\"mysql\"。",
3043
+ "document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,\"mongodb\" - 云数据库 MongoDB,默认为\"mysql\"。",
3044
3044
  "example": "mysql",
3045
3045
  "member": "string",
3046
3046
  "name": "Product",
@@ -3059,7 +3059,7 @@
3059
3059
  "example": "231",
3060
3060
  "member": "int64",
3061
3061
  "name": "Growth",
3062
- "required": true,
3062
+ "output_required": true,
3063
3063
  "type": "int",
3064
3064
  "value_allowed_null": false
3065
3065
  },
@@ -3069,7 +3069,7 @@
3069
3069
  "example": "23224",
3070
3070
  "member": "int64",
3071
3071
  "name": "Remain",
3072
- "required": true,
3072
+ "output_required": true,
3073
3073
  "type": "int",
3074
3074
  "value_allowed_null": false
3075
3075
  },
@@ -3079,7 +3079,7 @@
3079
3079
  "example": "50000",
3080
3080
  "member": "int64",
3081
3081
  "name": "Total",
3082
- "required": true,
3082
+ "output_required": true,
3083
3083
  "type": "int",
3084
3084
  "value_allowed_null": false
3085
3085
  },
@@ -3089,7 +3089,7 @@
3089
3089
  "example": "35",
3090
3090
  "member": "int64",
3091
3091
  "name": "AvailableDays",
3092
- "required": true,
3092
+ "output_required": true,
3093
3093
  "type": "int",
3094
3094
  "value_allowed_null": false
3095
3095
  },
@@ -693,6 +693,58 @@ def doModifyUserManagerPwd(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
+ def doDescribeHBaseTableOverview(args, parsed_globals):
697
+ g_param = parse_global_arg(parsed_globals)
698
+
699
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
700
+ cred = credential.CVMRoleCredential()
701
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
+ cred = credential.STSAssumeRoleCredential(
703
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
705
+ )
706
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
707
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
708
+ else:
709
+ cred = credential.Credential(
710
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
711
+ )
712
+ http_profile = HttpProfile(
713
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
714
+ reqMethod="POST",
715
+ endpoint=g_param[OptionsDefine.Endpoint],
716
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
717
+ )
718
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
719
+ if g_param[OptionsDefine.Language]:
720
+ profile.language = g_param[OptionsDefine.Language]
721
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
722
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
723
+ client._sdkVersion += ("_CLI_" + __version__)
724
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
+ model = models.DescribeHBaseTableOverviewRequest()
726
+ model.from_json_string(json.dumps(args))
727
+ start_time = time.time()
728
+ while True:
729
+ rsp = client.DescribeHBaseTableOverview(model)
730
+ result = rsp.to_json_string()
731
+ try:
732
+ json_obj = json.loads(result)
733
+ except TypeError as e:
734
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
735
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
736
+ break
737
+ cur_time = time.time()
738
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
739
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
740
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
741
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
742
+ else:
743
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
744
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
745
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
+
747
+
696
748
  def doDescribeInstances(args, parsed_globals):
697
749
  g_param = parse_global_arg(parsed_globals)
698
750
 
@@ -849,6 +901,58 @@ def doTerminateClusterNodes(args, parsed_globals):
849
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
902
 
851
903
 
904
+ def doDescribeEmrOverviewMetrics(args, parsed_globals):
905
+ g_param = parse_global_arg(parsed_globals)
906
+
907
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
908
+ cred = credential.CVMRoleCredential()
909
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
910
+ cred = credential.STSAssumeRoleCredential(
911
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
912
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
913
+ )
914
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
915
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
916
+ else:
917
+ cred = credential.Credential(
918
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
919
+ )
920
+ http_profile = HttpProfile(
921
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
922
+ reqMethod="POST",
923
+ endpoint=g_param[OptionsDefine.Endpoint],
924
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
925
+ )
926
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
927
+ if g_param[OptionsDefine.Language]:
928
+ profile.language = g_param[OptionsDefine.Language]
929
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
930
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
931
+ client._sdkVersion += ("_CLI_" + __version__)
932
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
+ model = models.DescribeEmrOverviewMetricsRequest()
934
+ model.from_json_string(json.dumps(args))
935
+ start_time = time.time()
936
+ while True:
937
+ rsp = client.DescribeEmrOverviewMetrics(model)
938
+ result = rsp.to_json_string()
939
+ try:
940
+ json_obj = json.loads(result)
941
+ except TypeError as e:
942
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
943
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
944
+ break
945
+ cur_time = time.time()
946
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
947
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
948
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
949
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
950
+ else:
951
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
952
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
953
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
+
955
+
852
956
  def doDescribeUsersForUserManager(args, parsed_globals):
853
957
  g_param = parse_global_arg(parsed_globals)
854
958
 
@@ -1421,7 +1525,7 @@ def doInquiryPriceCreateInstance(args, parsed_globals):
1421
1525
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
1526
 
1423
1527
 
1424
- def doDescribeResourceSchedule(args, parsed_globals):
1528
+ def doAddMetricScaleStrategy(args, parsed_globals):
1425
1529
  g_param = parse_global_arg(parsed_globals)
1426
1530
 
1427
1531
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1450,11 +1554,11 @@ def doDescribeResourceSchedule(args, parsed_globals):
1450
1554
  client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
1451
1555
  client._sdkVersion += ("_CLI_" + __version__)
1452
1556
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1453
- model = models.DescribeResourceScheduleRequest()
1557
+ model = models.AddMetricScaleStrategyRequest()
1454
1558
  model.from_json_string(json.dumps(args))
1455
1559
  start_time = time.time()
1456
1560
  while True:
1457
- rsp = client.DescribeResourceSchedule(model)
1561
+ rsp = client.AddMetricScaleStrategy(model)
1458
1562
  result = rsp.to_json_string()
1459
1563
  try:
1460
1564
  json_obj = json.loads(result)
@@ -1785,7 +1889,7 @@ def doDescribeAutoScaleStrategies(args, parsed_globals):
1785
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1890
 
1787
1891
 
1788
- def doAddMetricScaleStrategy(args, parsed_globals):
1892
+ def doDescribeResourceSchedule(args, parsed_globals):
1789
1893
  g_param = parse_global_arg(parsed_globals)
1790
1894
 
1791
1895
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1814,11 +1918,11 @@ def doAddMetricScaleStrategy(args, parsed_globals):
1814
1918
  client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
1815
1919
  client._sdkVersion += ("_CLI_" + __version__)
1816
1920
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1817
- model = models.AddMetricScaleStrategyRequest()
1921
+ model = models.DescribeResourceScheduleRequest()
1818
1922
  model.from_json_string(json.dumps(args))
1819
1923
  start_time = time.time()
1820
1924
  while True:
1821
- rsp = client.AddMetricScaleStrategy(model)
1925
+ rsp = client.DescribeResourceSchedule(model)
1822
1926
  result = rsp.to_json_string()
1823
1927
  try:
1824
1928
  json_obj = json.loads(result)
@@ -2173,9 +2277,11 @@ ACTION_MAP = {
2173
2277
  "DescribeCvmQuota": doDescribeCvmQuota,
2174
2278
  "ScaleOutInstance": doScaleOutInstance,
2175
2279
  "ModifyUserManagerPwd": doModifyUserManagerPwd,
2280
+ "DescribeHBaseTableOverview": doDescribeHBaseTableOverview,
2176
2281
  "DescribeInstances": doDescribeInstances,
2177
2282
  "RunJobFlow": doRunJobFlow,
2178
2283
  "TerminateClusterNodes": doTerminateClusterNodes,
2284
+ "DescribeEmrOverviewMetrics": doDescribeEmrOverviewMetrics,
2179
2285
  "DescribeUsersForUserManager": doDescribeUsersForUserManager,
2180
2286
  "DeleteUserManagerUserList": doDeleteUserManagerUserList,
2181
2287
  "AddUsersForUserManager": doAddUsersForUserManager,
@@ -2187,14 +2293,14 @@ ACTION_MAP = {
2187
2293
  "SyncPodState": doSyncPodState,
2188
2294
  "CreateInstance": doCreateInstance,
2189
2295
  "InquiryPriceCreateInstance": doInquiryPriceCreateInstance,
2190
- "DescribeResourceSchedule": doDescribeResourceSchedule,
2296
+ "AddMetricScaleStrategy": doAddMetricScaleStrategy,
2191
2297
  "ModifyResourceScheduleConfig": doModifyResourceScheduleConfig,
2192
2298
  "DescribeHiveQueries": doDescribeHiveQueries,
2193
2299
  "StartStopServiceOrMonitor": doStartStopServiceOrMonitor,
2194
2300
  "TerminateTasks": doTerminateTasks,
2195
2301
  "TerminateInstance": doTerminateInstance,
2196
2302
  "DescribeAutoScaleStrategies": doDescribeAutoScaleStrategies,
2197
- "AddMetricScaleStrategy": doAddMetricScaleStrategy,
2303
+ "DescribeResourceSchedule": doDescribeResourceSchedule,
2198
2304
  "DescribeAutoScaleGroupGlobalConf": doDescribeAutoScaleGroupGlobalConf,
2199
2305
  "DescribeClusterNodes": doDescribeClusterNodes,
2200
2306
  "DescribeInstancesList": doDescribeInstancesList,