tccli 3.0.1133.1__py2.py3-none-any.whl → 3.0.1135.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +2 -2
  3. tccli/services/billing/v20180709/api.json +10 -0
  4. tccli/services/cam/v20190116/api.json +41 -12
  5. tccli/services/cdb/cdb_client.py +57 -4
  6. tccli/services/cdb/v20170320/api.json +270 -0
  7. tccli/services/cdb/v20170320/examples.json +8 -0
  8. tccli/services/cls/v20201016/api.json +3 -3
  9. tccli/services/cls/v20201016/examples.json +1 -1
  10. tccli/services/cmq/v20190304/api.json +53 -49
  11. tccli/services/cmq/v20190304/examples.json +2 -2
  12. tccli/services/cynosdb/cynosdb_client.py +57 -4
  13. tccli/services/cynosdb/v20190107/api.json +111 -0
  14. tccli/services/cynosdb/v20190107/examples.json +8 -0
  15. tccli/services/dlc/dlc_client.py +53 -0
  16. tccli/services/dlc/v20210125/api.json +153 -6
  17. tccli/services/dlc/v20210125/examples.json +14 -6
  18. tccli/services/dsgc/v20190723/api.json +45 -40
  19. tccli/services/dts/dts_client.py +0 -53
  20. tccli/services/dts/v20180330/api.json +0 -98
  21. tccli/services/dts/v20180330/examples.json +0 -8
  22. tccli/services/emr/v20190103/api.json +4 -4
  23. tccli/services/ess/ess_client.py +411 -305
  24. tccli/services/ess/v20201111/api.json +144 -0
  25. tccli/services/ess/v20201111/examples.json +16 -0
  26. tccli/services/essbasic/essbasic_client.py +110 -4
  27. tccli/services/essbasic/v20210526/api.json +138 -3
  28. tccli/services/essbasic/v20210526/examples.json +16 -0
  29. tccli/services/facefusion/v20181201/api.json +12 -12
  30. tccli/services/facefusion/v20181201/examples.json +4 -4
  31. tccli/services/iotexplorer/v20190423/api.json +4 -4
  32. tccli/services/lcic/v20220817/api.json +4 -4
  33. tccli/services/lighthouse/v20200324/api.json +1 -1
  34. tccli/services/lke/v20231130/api.json +274 -82
  35. tccli/services/lke/v20231130/examples.json +11 -5
  36. tccli/services/mongodb/mongodb_client.py +57 -4
  37. tccli/services/mongodb/v20190725/api.json +96 -0
  38. tccli/services/mongodb/v20190725/examples.json +8 -0
  39. tccli/services/mps/v20190612/api.json +57 -7
  40. tccli/services/mps/v20190612/examples.json +1 -1
  41. tccli/services/ocr/v20181119/api.json +373 -3
  42. tccli/services/organization/organization_client.py +118 -12
  43. tccli/services/organization/v20210331/api.json +68 -0
  44. tccli/services/organization/v20210331/examples.json +16 -0
  45. tccli/services/ses/v20201002/api.json +20 -1
  46. tccli/services/tdmq/tdmq_client.py +443 -19
  47. tccli/services/tdmq/v20200217/api.json +607 -17
  48. tccli/services/tdmq/v20200217/examples.json +64 -0
  49. tccli/services/tke/v20180525/api.json +33 -21
  50. tccli/services/tke/v20180525/examples.json +4 -4
  51. tccli/services/trro/v20220325/api.json +6 -6
  52. tccli/services/trtc/v20190722/api.json +4 -4
  53. tccli/services/tsf/v20180326/api.json +37 -27
  54. tccli/services/tsf/v20180326/examples.json +1 -1
  55. {tccli-3.0.1133.1.dist-info → tccli-3.0.1135.1.dist-info}/METADATA +2 -2
  56. {tccli-3.0.1133.1.dist-info → tccli-3.0.1135.1.dist-info}/RECORD +59 -59
  57. {tccli-3.0.1133.1.dist-info → tccli-3.0.1135.1.dist-info}/WHEEL +0 -0
  58. {tccli-3.0.1133.1.dist-info → tccli-3.0.1135.1.dist-info}/entry_points.txt +0 -0
  59. {tccli-3.0.1133.1.dist-info → tccli-3.0.1135.1.dist-info}/license_files/LICENSE +0 -0
@@ -64,7 +64,7 @@
64
64
  "status": "online"
65
65
  },
66
66
  "DescribeQueueDetail": {
67
- "document": "枚举队列",
67
+ "document": "枚举队列列表",
68
68
  "input": "DescribeQueueDetailRequest",
69
69
  "name": "枚举队列",
70
70
  "output": "DescribeQueueDetailResponse",
@@ -78,9 +78,9 @@
78
78
  "status": "online"
79
79
  },
80
80
  "DescribeTopicDetail": {
81
- "document": "查询主题详情 ",
81
+ "document": "查询主题详情",
82
82
  "input": "DescribeTopicDetailRequest",
83
- "name": "查询主题详情",
83
+ "name": "查询主题列表",
84
84
  "output": "DescribeTopicDetailResponse",
85
85
  "status": "online"
86
86
  },
@@ -772,17 +772,17 @@
772
772
  "members": [
773
773
  {
774
774
  "disabled": false,
775
- "document": "分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0",
776
- "example": "",
777
- "member": "uint64",
778
- "name": "Offset",
775
+ "document": "标签搜索",
776
+ "example": "tag",
777
+ "member": "string",
778
+ "name": "TagKey",
779
779
  "required": false,
780
- "type": "int"
780
+ "type": "string"
781
781
  },
782
782
  {
783
783
  "disabled": false,
784
784
  "document": "分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。",
785
- "example": "",
785
+ "example": "20",
786
786
  "member": "uint64",
787
787
  "name": "Limit",
788
788
  "required": false,
@@ -790,30 +790,30 @@
790
790
  },
791
791
  {
792
792
  "disabled": false,
793
- "document": "筛选参数,目前支持QueueName筛选,且仅支持一个关键字",
794
- "example": "",
795
- "member": "Filter",
796
- "name": "Filters",
793
+ "document": "精确匹配QueueName",
794
+ "example": "test",
795
+ "member": "string",
796
+ "name": "QueueName",
797
797
  "required": false,
798
- "type": "list"
798
+ "type": "string"
799
799
  },
800
800
  {
801
801
  "disabled": false,
802
- "document": "标签搜索",
803
- "example": "",
804
- "member": "string",
805
- "name": "TagKey",
802
+ "document": "筛选参数,目前支持QueueName筛选,且仅支持一个关键字",
803
+ "example": "name",
804
+ "member": "Filter",
805
+ "name": "Filters",
806
806
  "required": false,
807
- "type": "string"
807
+ "type": "list"
808
808
  },
809
809
  {
810
810
  "disabled": false,
811
- "document": "精确匹配QueueName",
812
- "example": "",
813
- "member": "string",
814
- "name": "QueueName",
811
+ "document": "分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0",
812
+ "example": "20",
813
+ "member": "uint64",
814
+ "name": "Offset",
815
815
  "required": false,
816
- "type": "string"
816
+ "type": "int"
817
817
  }
818
818
  ],
819
819
  "type": "object"
@@ -824,18 +824,20 @@
824
824
  {
825
825
  "disabled": false,
826
826
  "document": "总队列数。",
827
- "example": "",
827
+ "example": "20",
828
828
  "member": "uint64",
829
829
  "name": "TotalCount",
830
+ "output_required": true,
830
831
  "type": "int",
831
832
  "value_allowed_null": false
832
833
  },
833
834
  {
834
835
  "disabled": false,
835
836
  "document": "队列详情列表。",
836
- "example": "",
837
+ "example": "[]",
837
838
  "member": "QueueSet",
838
839
  "name": "QueueSet",
840
+ "output_required": true,
839
841
  "type": "list",
840
842
  "value_allowed_null": false
841
843
  },
@@ -925,17 +927,17 @@
925
927
  "members": [
926
928
  {
927
929
  "disabled": false,
928
- "document": "分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。",
929
- "example": "",
930
- "member": "uint64",
931
- "name": "Offset",
930
+ "document": "标签匹配。",
931
+ "example": "aa",
932
+ "member": "string",
933
+ "name": "TagKey",
932
934
  "required": false,
933
- "type": "int"
935
+ "type": "string"
934
936
  },
935
937
  {
936
938
  "disabled": false,
937
939
  "document": "分页时本页获取队列的个数,如果不传递该参数,则该参数默认为20,最大值为50。",
938
- "example": "",
940
+ "example": "20",
939
941
  "member": "uint64",
940
942
  "name": "Limit",
941
943
  "required": false,
@@ -943,30 +945,30 @@
943
945
  },
944
946
  {
945
947
  "disabled": false,
946
- "document": "目前只支持过滤TopicName , 且只能填一个过滤值。",
947
- "example": "",
948
- "member": "Filter",
949
- "name": "Filters",
948
+ "document": "精确匹配TopicName",
949
+ "example": "topic1",
950
+ "member": "string",
951
+ "name": "TopicName",
950
952
  "required": false,
951
- "type": "list"
953
+ "type": "string"
952
954
  },
953
955
  {
954
956
  "disabled": false,
955
- "document": "标签匹配。",
956
- "example": "",
957
- "member": "string",
958
- "name": "TagKey",
957
+ "document": "目前只支持过滤TopicName , 且只能填一个过滤值。",
958
+ "example": "[]",
959
+ "member": "Filter",
960
+ "name": "Filters",
959
961
  "required": false,
960
- "type": "string"
962
+ "type": "list"
961
963
  },
962
964
  {
963
965
  "disabled": false,
964
- "document": "精确匹配TopicName。",
965
- "example": "",
966
- "member": "string",
967
- "name": "TopicName",
966
+ "document": "分页时本页获取队列列表的起始位置。如果填写了该值,必须也要填写 limit 。该值缺省时,后台取默认值 0。",
967
+ "example": "0",
968
+ "member": "uint64",
969
+ "name": "Offset",
968
970
  "required": false,
969
- "type": "string"
971
+ "type": "int"
970
972
  }
971
973
  ],
972
974
  "type": "object"
@@ -977,18 +979,20 @@
977
979
  {
978
980
  "disabled": false,
979
981
  "document": "主题列表总数。",
980
- "example": "",
982
+ "example": "3",
981
983
  "member": "uint64",
982
984
  "name": "TotalCount",
985
+ "output_required": true,
983
986
  "type": "int",
984
987
  "value_allowed_null": false
985
988
  },
986
989
  {
987
990
  "disabled": false,
988
991
  "document": "主题详情列表。",
989
- "example": "",
992
+ "example": "[]",
990
993
  "member": "TopicSet",
991
994
  "name": "TopicSet",
995
+ "output_required": true,
992
996
  "type": "list",
993
997
  "value_allowed_null": false
994
998
  },
@@ -91,8 +91,8 @@
91
91
  "DescribeTopicDetail": [
92
92
  {
93
93
  "document": "",
94
- "input": "https://cmq.tencentcloudapi.com/?Action=DescribeTopicDetail\r\n&Offset=0&Limit=2\r\n&<公共请求参数>",
95
- "output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"TopicSet\": [\n {\n \"Tags\": [],\n \"TopicId\": \"topic-rga4l1o4\",\n \"TopicName\": \"ConnTopic\",\n \"CreateUin\": 20548499,\n \"MsgRetentionSeconds\": 10000,\n \"MaxMsgSize\": 20000,\n \"Qps\": 10000,\n \"FilterType\": 1,\n \"CreateTime\": 1581516588,\n \"LastModifyTime\": 1581563581,\n \"MsgCount\": 0\n },\n {\n \"Tags\": [],\n \"TopicId\": \"topic-388k6x98\",\n \"TopicName\": \"test123\",\n \"CreateUin\": 20548499,\n \"MsgRetentionSeconds\": 86400,\n \"MaxMsgSize\": 65536,\n \"Qps\": 5000,\n \"FilterType\": 1,\n \"CreateTime\": 1581493669,\n \"LastModifyTime\": 1581495310,\n \"MsgCount\": 0\n }\n ],\n \"RequestId\": \"68ebb46b-5eac-467a-9942-1a5da83a65ca\"\n }\n}",
94
+ "input": "POST / HTTP/1.1\nHost: cmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopicDetail\n<公共请求参数>\n\n{\n \"TagKey\": \"abc\",\n \"Limit\": 1,\n \"TopicName\": \"abc\",\n \"Filters\": [\n {\n \"Values\": [\n \"test123\"\n ],\n \"Name\": \"TopicName\"\n }\n ],\n \"Offset\": 1\n}",
95
+ "output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"TopicSet\": [\n {\n \"Tags\": [],\n \"TopicId\": \"topic-388k6x98\",\n \"TopicName\": \"test123\",\n \"CreateUin\": 20548499,\n \"MsgRetentionSeconds\": 86400,\n \"MaxMsgSize\": 65536,\n \"Qps\": 5000,\n \"FilterType\": 1,\n \"CreateTime\": 1581493669,\n \"LastModifyTime\": 1581495310,\n \"MsgCount\": 0\n }\n ],\n \"RequestId\": \"68ebb46b-5eac-467a-9942-1a5da83a65ca\"\n }\n}",
96
96
  "title": "查询主题详情"
97
97
  }
98
98
  ],
@@ -693,7 +693,7 @@ def doCreateAuditLogFile(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doSwitchClusterVpc(args, parsed_globals):
696
+ def doRenewClusters(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doSwitchClusterVpc(args, parsed_globals):
722
722
  client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.SwitchClusterVpcRequest()
725
+ model = models.RenewClustersRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.SwitchClusterVpc(model)
729
+ rsp = client.RenewClusters(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -5425,6 +5425,58 @@ def doModifyAccountDescription(args, parsed_globals):
5425
5425
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5426
5426
 
5427
5427
 
5428
+ def doSwitchClusterVpc(args, parsed_globals):
5429
+ g_param = parse_global_arg(parsed_globals)
5430
+
5431
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5432
+ cred = credential.CVMRoleCredential()
5433
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5434
+ cred = credential.STSAssumeRoleCredential(
5435
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5436
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5437
+ )
5438
+ 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):
5439
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5440
+ else:
5441
+ cred = credential.Credential(
5442
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5443
+ )
5444
+ http_profile = HttpProfile(
5445
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5446
+ reqMethod="POST",
5447
+ endpoint=g_param[OptionsDefine.Endpoint],
5448
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5449
+ )
5450
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5451
+ if g_param[OptionsDefine.Language]:
5452
+ profile.language = g_param[OptionsDefine.Language]
5453
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5454
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
5455
+ client._sdkVersion += ("_CLI_" + __version__)
5456
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5457
+ model = models.SwitchClusterVpcRequest()
5458
+ model.from_json_string(json.dumps(args))
5459
+ start_time = time.time()
5460
+ while True:
5461
+ rsp = client.SwitchClusterVpc(model)
5462
+ result = rsp.to_json_string()
5463
+ try:
5464
+ json_obj = json.loads(result)
5465
+ except TypeError as e:
5466
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5467
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5468
+ break
5469
+ cur_time = time.time()
5470
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5471
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5472
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5473
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5474
+ else:
5475
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5476
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5477
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5478
+
5479
+
5428
5480
  def doCreateClusterDatabase(args, parsed_globals):
5429
5481
  g_param = parse_global_arg(parsed_globals)
5430
5482
 
@@ -7373,7 +7425,7 @@ ACTION_MAP = {
7373
7425
  "DescribeResourcePackageList": doDescribeResourcePackageList,
7374
7426
  "DescribeSupportProxyVersion": doDescribeSupportProxyVersion,
7375
7427
  "CreateAuditLogFile": doCreateAuditLogFile,
7376
- "SwitchClusterVpc": doSwitchClusterVpc,
7428
+ "RenewClusters": doRenewClusters,
7377
7429
  "CloseProxy": doCloseProxy,
7378
7430
  "DescribeProxySpecs": doDescribeProxySpecs,
7379
7431
  "DescribeClusterDetail": doDescribeClusterDetail,
@@ -7464,6 +7516,7 @@ ACTION_MAP = {
7464
7516
  "StopCLSDelivery": doStopCLSDelivery,
7465
7517
  "DescribeBackupList": doDescribeBackupList,
7466
7518
  "ModifyAccountDescription": doModifyAccountDescription,
7519
+ "SwitchClusterVpc": doSwitchClusterVpc,
7467
7520
  "CreateClusterDatabase": doCreateClusterDatabase,
7468
7521
  "ModifyResourcePackageName": doModifyResourcePackageName,
7469
7522
  "DeleteAuditLogFile": doDeleteAuditLogFile,
@@ -854,6 +854,13 @@
854
854
  "output": "RemoveClusterSlaveZoneResponse",
855
855
  "status": "online"
856
856
  },
857
+ "RenewClusters": {
858
+ "document": "续费集群",
859
+ "input": "RenewClustersRequest",
860
+ "name": "续费集群",
861
+ "output": "RenewClustersResponse",
862
+ "status": "online"
863
+ },
857
864
  "ResetAccountPassword": {
858
865
  "document": "本接口(ResetAccountPassword)用于修改数据库账号密码",
859
866
  "input": "ResetAccountPasswordRequest",
@@ -17297,6 +17304,110 @@
17297
17304
  ],
17298
17305
  "type": "object"
17299
17306
  },
17307
+ "RenewClustersRequest": {
17308
+ "document": "RenewClusters请求参数结构体",
17309
+ "members": [
17310
+ {
17311
+ "disabled": false,
17312
+ "document": "集群ID",
17313
+ "example": "cynosdbpg-bzxxrmtq",
17314
+ "member": "string",
17315
+ "name": "ClusterId",
17316
+ "required": true,
17317
+ "type": "string"
17318
+ },
17319
+ {
17320
+ "disabled": false,
17321
+ "document": "续费时长",
17322
+ "example": "1",
17323
+ "member": "float",
17324
+ "name": "TimeSpan",
17325
+ "required": true,
17326
+ "type": "float"
17327
+ },
17328
+ {
17329
+ "disabled": false,
17330
+ "document": "时间单位 y,m,d,h,i,s",
17331
+ "example": "m",
17332
+ "member": "string",
17333
+ "name": "TimeUnit",
17334
+ "required": true,
17335
+ "type": "string"
17336
+ },
17337
+ {
17338
+ "disabled": false,
17339
+ "document": "交易模式 0-下单并支付 1-下单",
17340
+ "example": "0",
17341
+ "member": "int64",
17342
+ "name": "DealMode",
17343
+ "required": false,
17344
+ "type": "int"
17345
+ }
17346
+ ],
17347
+ "type": "object"
17348
+ },
17349
+ "RenewClustersResponse": {
17350
+ "document": "RenewClusters返回参数结构体",
17351
+ "members": [
17352
+ {
17353
+ "disabled": false,
17354
+ "document": "预付费总订单号\n注意:此字段可能返回 null,表示取不到有效值。",
17355
+ "example": "123",
17356
+ "member": "string",
17357
+ "name": "BigDealIds",
17358
+ "required": true,
17359
+ "type": "list",
17360
+ "value_allowed_null": true
17361
+ },
17362
+ {
17363
+ "disabled": false,
17364
+ "document": "退款订单号\n注意:此字段可能返回 null,表示取不到有效值。",
17365
+ "example": "[134]",
17366
+ "member": "string",
17367
+ "name": "DealNames",
17368
+ "required": true,
17369
+ "type": "list",
17370
+ "value_allowed_null": true
17371
+ },
17372
+ {
17373
+ "disabled": false,
17374
+ "document": "冻结流水,一次开通一个冻结流水\n注意:此字段可能返回 null,表示取不到有效值。",
17375
+ "example": "0",
17376
+ "member": "string",
17377
+ "name": "TranId",
17378
+ "required": true,
17379
+ "type": "string",
17380
+ "value_allowed_null": true
17381
+ },
17382
+ {
17383
+ "disabled": false,
17384
+ "document": "每个订单号对应的发货资源id列表\n注意:此字段可能返回 null,表示取不到有效值。",
17385
+ "example": "无",
17386
+ "member": "string",
17387
+ "name": "ResourceIds",
17388
+ "required": true,
17389
+ "type": "list",
17390
+ "value_allowed_null": true
17391
+ },
17392
+ {
17393
+ "disabled": false,
17394
+ "document": "集群id列表\n注意:此字段可能返回 null,表示取不到有效值。",
17395
+ "example": "无",
17396
+ "member": "string",
17397
+ "name": "ClusterIds",
17398
+ "required": true,
17399
+ "type": "list",
17400
+ "value_allowed_null": true
17401
+ },
17402
+ {
17403
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
17404
+ "member": "string",
17405
+ "name": "RequestId",
17406
+ "type": "string"
17407
+ }
17408
+ ],
17409
+ "type": "object"
17410
+ },
17300
17411
  "ResetAccountPasswordRequest": {
17301
17412
  "document": "ResetAccountPassword请求参数结构体",
17302
17413
  "members": [
@@ -1000,6 +1000,14 @@
1000
1000
  "title": "关闭多可用区部署"
1001
1001
  }
1002
1002
  ],
1003
+ "RenewClusters": [
1004
+ {
1005
+ "document": "",
1006
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewClusters\n<公共请求参数>\n\n{\n \"TimeUnit\": \"xx\",\n \"DealMode\": 0,\n \"ClusterId\": \"xx\",\n \"TimeSpan\": 0.0\n}",
1007
+ "output": "{\n \"Response\": {\n \"TranId\": \"\",\n \"BigDealIds\": null,\n \"ResourceIds\": [],\n \"RequestId\": \"11b4ce54-xxxx\",\n \"ClusterIds\": [],\n \"DealNames\": [\n \"xxx\",\n \"xxx\",\n \"xxx\"\n ]\n }\n}",
1008
+ "title": "续费集群"
1009
+ }
1010
+ ],
1003
1011
  "ResetAccountPassword": [
1004
1012
  {
1005
1013
  "document": "修改数据库账号密码",
@@ -2565,6 +2565,58 @@ def doReportHeartbeatMetaData(args, parsed_globals):
2565
2565
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
2566
 
2567
2567
 
2568
+ def doDescribeSparkSessionBatchSQLCost(args, parsed_globals):
2569
+ g_param = parse_global_arg(parsed_globals)
2570
+
2571
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2572
+ cred = credential.CVMRoleCredential()
2573
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2574
+ cred = credential.STSAssumeRoleCredential(
2575
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2576
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2577
+ )
2578
+ 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):
2579
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2580
+ else:
2581
+ cred = credential.Credential(
2582
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2583
+ )
2584
+ http_profile = HttpProfile(
2585
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2586
+ reqMethod="POST",
2587
+ endpoint=g_param[OptionsDefine.Endpoint],
2588
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2589
+ )
2590
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2591
+ if g_param[OptionsDefine.Language]:
2592
+ profile.language = g_param[OptionsDefine.Language]
2593
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2594
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
2595
+ client._sdkVersion += ("_CLI_" + __version__)
2596
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2597
+ model = models.DescribeSparkSessionBatchSQLCostRequest()
2598
+ model.from_json_string(json.dumps(args))
2599
+ start_time = time.time()
2600
+ while True:
2601
+ rsp = client.DescribeSparkSessionBatchSQLCost(model)
2602
+ result = rsp.to_json_string()
2603
+ try:
2604
+ json_obj = json.loads(result)
2605
+ except TypeError as e:
2606
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2607
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2608
+ break
2609
+ cur_time = time.time()
2610
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2611
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2612
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2613
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2614
+ else:
2615
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2616
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2617
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
+
2619
+
2568
2620
  def doDescribeUpdatableDataEngines(args, parsed_globals):
2569
2621
  g_param = parse_global_arg(parsed_globals)
2570
2622
 
@@ -7305,6 +7357,7 @@ ACTION_MAP = {
7305
7357
  "DescribeTablesName": doDescribeTablesName,
7306
7358
  "DeleteCHDFSBindingProduct": doDeleteCHDFSBindingProduct,
7307
7359
  "ReportHeartbeatMetaData": doReportHeartbeatMetaData,
7360
+ "DescribeSparkSessionBatchSQLCost": doDescribeSparkSessionBatchSQLCost,
7308
7361
  "DescribeUpdatableDataEngines": doDescribeUpdatableDataEngines,
7309
7362
  "CreateInternalTable": doCreateInternalTable,
7310
7363
  "GenerateCreateMangedTableSql": doGenerateCreateMangedTableSql,