tccli 3.0.1129.1__py2.py3-none-any.whl → 3.0.1131.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 (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +1 -1
  3. tccli/services/cdb/v20170320/api.json +2 -2
  4. tccli/services/cds/cds_client.py +11 -64
  5. tccli/services/cds/v20180420/api.json +0 -42
  6. tccli/services/cds/v20180420/examples.json +0 -8
  7. tccli/services/cdwch/v20200915/api.json +30 -0
  8. tccli/services/ciam/v20220331/api.json +92 -104
  9. tccli/services/cls/v20201016/api.json +5 -5
  10. tccli/services/cynosdb/v20190107/api.json +47 -2
  11. tccli/services/domain/v20180808/api.json +39 -39
  12. tccli/services/ess/v20201111/api.json +7 -7
  13. tccli/services/essbasic/v20210526/api.json +10 -1
  14. tccli/services/essbasic/v20210526/examples.json +1 -1
  15. tccli/services/lighthouse/v20200324/api.json +15 -15
  16. tccli/services/mongodb/v20190725/api.json +50 -20
  17. tccli/services/mongodb/v20190725/examples.json +1 -1
  18. tccli/services/privatedns/v20201028/api.json +5 -5
  19. tccli/services/privatedns/v20201028/examples.json +1 -1
  20. tccli/services/redis/redis_client.py +220 -8
  21. tccli/services/redis/v20180412/api.json +251 -20
  22. tccli/services/redis/v20180412/examples.json +32 -0
  23. tccli/services/ssl/v20191205/api.json +66 -38
  24. tccli/services/ssl/v20191205/examples.json +1 -1
  25. tccli/services/tcaplusdb/v20190823/api.json +147 -75
  26. tccli/services/tcaplusdb/v20190823/examples.json +10 -10
  27. tccli/services/tcbr/v20220217/api.json +2 -2
  28. tccli/services/tcbr/v20220217/examples.json +1 -1
  29. tccli/services/tcm/v20210413/api.json +85 -32
  30. tccli/services/tcm/v20210413/examples.json +2 -2
  31. tccli/services/tcr/v20190924/api.json +8 -8
  32. tccli/services/tcr/v20190924/examples.json +1 -1
  33. tccli/services/tdmq/v20200217/api.json +23 -10
  34. tccli/services/tdmq/v20200217/examples.json +3 -3
  35. tccli/services/tke/v20180525/api.json +31 -26
  36. tccli/services/tke/v20180525/examples.json +9 -9
  37. tccli/services/trtc/v20190722/api.json +5 -5
  38. tccli/services/tse/v20201207/api.json +205 -0
  39. tccli/services/tse/v20201207/examples.json +1 -1
  40. tccli/services/tsf/v20180326/api.json +112 -62
  41. tccli/services/tts/v20190823/api.json +1 -1
  42. tccli/services/waf/v20180125/api.json +109 -0
  43. tccli/services/waf/v20180125/examples.json +14 -0
  44. tccli/services/waf/waf_client.py +61 -8
  45. tccli/services/wedata/v20210820/api.json +71 -0
  46. tccli/services/wedata/v20210820/examples.json +8 -0
  47. tccli/services/wedata/wedata_client.py +53 -0
  48. {tccli-3.0.1129.1.dist-info → tccli-3.0.1131.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.1129.1.dist-info → tccli-3.0.1131.1.dist-info}/RECORD +52 -52
  50. {tccli-3.0.1129.1.dist-info → tccli-3.0.1131.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.1129.1.dist-info → tccli-3.0.1131.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.1129.1.dist-info → tccli-3.0.1131.1.dist-info}/license_files/LICENSE +0 -0
@@ -238,6 +238,13 @@
238
238
  "output": "DescribeAntiInfoLeakageRulesResponse",
239
239
  "status": "online"
240
240
  },
241
+ "DescribeAreaBanAreas": {
242
+ "document": "获取地域封禁配置包括地域封禁开关,设置封禁的地区信息",
243
+ "input": "DescribeAreaBanAreasRequest",
244
+ "name": "获取地域封禁配置",
245
+ "output": "DescribeAreaBanAreasResponse",
246
+ "status": "online"
247
+ },
241
248
  "DescribeAreaBanSupportAreas": {
242
249
  "document": "获取WAF地域封禁支持的地域列表",
243
250
  "input": "DescribeAreaBanSupportAreasRequest",
@@ -5934,6 +5941,108 @@
5934
5941
  ],
5935
5942
  "usage": "out"
5936
5943
  },
5944
+ "DescribeAreaBanAreasRequest": {
5945
+ "document": "DescribeAreaBanAreas请求参数结构体",
5946
+ "members": [
5947
+ {
5948
+ "disabled": false,
5949
+ "document": "需要查询的域名",
5950
+ "example": "",
5951
+ "member": "string",
5952
+ "name": "Domain",
5953
+ "required": true,
5954
+ "type": "string"
5955
+ }
5956
+ ],
5957
+ "type": "object"
5958
+ },
5959
+ "DescribeAreaBanAreasResponse": {
5960
+ "document": "DescribeAreaBanAreas返回参数结构体",
5961
+ "members": [
5962
+ {
5963
+ "disabled": false,
5964
+ "document": "回包内容\n注意:此字段可能返回 null,表示取不到有效值。",
5965
+ "example": "",
5966
+ "member": "DescribeAreaBanAreasRsp",
5967
+ "name": "Data",
5968
+ "type": "object",
5969
+ "value_allowed_null": true
5970
+ },
5971
+ {
5972
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5973
+ "member": "string",
5974
+ "name": "RequestId",
5975
+ "type": "string"
5976
+ }
5977
+ ],
5978
+ "type": "object"
5979
+ },
5980
+ "DescribeAreaBanAreasRsp": {
5981
+ "document": "DescribeAreaBanAreas接口的回包",
5982
+ "members": [
5983
+ {
5984
+ "disabled": false,
5985
+ "document": "状态 \"0\":未开启地域封禁 \"1\":开启地域封禁",
5986
+ "example": "无",
5987
+ "member": "string",
5988
+ "name": "Status",
5989
+ "output_required": true,
5990
+ "type": "string",
5991
+ "value_allowed_null": false
5992
+ },
5993
+ {
5994
+ "disabled": false,
5995
+ "document": "数据来源 custom-自定义(默认)、batch-批量防护\n注意:此字段可能返回 null,表示取不到有效值。",
5996
+ "example": "custom",
5997
+ "member": "string",
5998
+ "name": "Source",
5999
+ "output_required": false,
6000
+ "type": "string",
6001
+ "value_allowed_null": true
6002
+ },
6003
+ {
6004
+ "disabled": false,
6005
+ "document": "字符串数据,配置的地域列表",
6006
+ "example": "无",
6007
+ "member": "string",
6008
+ "name": "Areas",
6009
+ "output_required": true,
6010
+ "type": "list",
6011
+ "value_allowed_null": false
6012
+ },
6013
+ {
6014
+ "disabled": false,
6015
+ "document": "定时任务类型\n注意:此字段可能返回 null,表示取不到有效值。",
6016
+ "example": "无",
6017
+ "member": "string",
6018
+ "name": "JobType",
6019
+ "output_required": false,
6020
+ "type": "string",
6021
+ "value_allowed_null": true
6022
+ },
6023
+ {
6024
+ "disabled": false,
6025
+ "document": "定时任务详细配置\n注意:此字段可能返回 null,表示取不到有效值。",
6026
+ "example": "无",
6027
+ "member": "JobDateTime",
6028
+ "name": "JobDateTime",
6029
+ "output_required": false,
6030
+ "type": "object",
6031
+ "value_allowed_null": true
6032
+ },
6033
+ {
6034
+ "disabled": false,
6035
+ "document": "周期任务配置\n注意:此字段可能返回 null,表示取不到有效值。",
6036
+ "example": "无",
6037
+ "member": "string",
6038
+ "name": "CronType",
6039
+ "output_required": false,
6040
+ "type": "string",
6041
+ "value_allowed_null": true
6042
+ }
6043
+ ],
6044
+ "usage": "out"
6045
+ },
5937
6046
  "DescribeAreaBanSupportAreasRequest": {
5938
6047
  "document": "DescribeAreaBanSupportAreas请求参数结构体",
5939
6048
  "members": [],
@@ -294,6 +294,20 @@
294
294
  "title": "获取信息防泄漏规则列表"
295
295
  }
296
296
  ],
297
+ "DescribeAreaBanAreas": [
298
+ {
299
+ "document": "",
300
+ "input": "https://waf.tencentcloudapi.com/?Action=DescribeAreaBanAreas\r\n&Domain=test.qcloudwaf.com\r\n&<公共请求参数>",
301
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Areas\": [\n \"新疆\",\n \"江西\"\n ],\n \"Status\": \"0\"\n },\n \"RequestId\": \"5ae9f295-4075-4472-8fd5-da69cc6ffa58\"\n }\n}",
302
+ "title": "获取地域封禁配置"
303
+ },
304
+ {
305
+ "document": "",
306
+ "input": "https://waf.tencentcloudapi.com/?Action=DescribeAreaBanAreas\r\n&Domain=www.test.com\r\n&<公共请求参数>",
307
+ "output": "{\n \"Response\": {\n \"Data\": null,\n \"RequestId\": \"7b9c4e2b-8282-4a6a-90cf-f64f2caef67a\"\n }\n}",
308
+ "title": "未设置封禁区域的场景"
309
+ }
310
+ ],
297
311
  "DescribeAreaBanSupportAreas": [
298
312
  {
299
313
  "document": "",
@@ -433,6 +433,58 @@ def doDescribeAntiInfoLeakRules(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
+ def doDescribeAreaBanAreas(args, parsed_globals):
437
+ g_param = parse_global_arg(parsed_globals)
438
+
439
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
440
+ cred = credential.CVMRoleCredential()
441
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
+ cred = credential.STSAssumeRoleCredential(
443
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
445
+ )
446
+ 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):
447
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
448
+ else:
449
+ cred = credential.Credential(
450
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
451
+ )
452
+ http_profile = HttpProfile(
453
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
454
+ reqMethod="POST",
455
+ endpoint=g_param[OptionsDefine.Endpoint],
456
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
457
+ )
458
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
459
+ if g_param[OptionsDefine.Language]:
460
+ profile.language = g_param[OptionsDefine.Language]
461
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
462
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
463
+ client._sdkVersion += ("_CLI_" + __version__)
464
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
+ model = models.DescribeAreaBanAreasRequest()
466
+ model.from_json_string(json.dumps(args))
467
+ start_time = time.time()
468
+ while True:
469
+ rsp = client.DescribeAreaBanAreas(model)
470
+ result = rsp.to_json_string()
471
+ try:
472
+ json_obj = json.loads(result)
473
+ except TypeError as e:
474
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
475
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
476
+ break
477
+ cur_time = time.time()
478
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
479
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
480
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
481
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
482
+ else:
483
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
484
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
485
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
+
487
+
436
488
  def doModifyCustomRule(args, parsed_globals):
437
489
  g_param = parse_global_arg(parsed_globals)
438
490
 
@@ -1577,7 +1629,7 @@ def doDescribeWebshellStatus(args, parsed_globals):
1577
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
1630
 
1579
1631
 
1580
- def doGenerateDealsAndPayNew(args, parsed_globals):
1632
+ def doDescribeDomainWhiteRules(args, parsed_globals):
1581
1633
  g_param = parse_global_arg(parsed_globals)
1582
1634
 
1583
1635
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1606,11 +1658,11 @@ def doGenerateDealsAndPayNew(args, parsed_globals):
1606
1658
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
1607
1659
  client._sdkVersion += ("_CLI_" + __version__)
1608
1660
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
- model = models.GenerateDealsAndPayNewRequest()
1661
+ model = models.DescribeDomainWhiteRulesRequest()
1610
1662
  model.from_json_string(json.dumps(args))
1611
1663
  start_time = time.time()
1612
1664
  while True:
1613
- rsp = client.GenerateDealsAndPayNew(model)
1665
+ rsp = client.DescribeDomainWhiteRules(model)
1614
1666
  result = rsp.to_json_string()
1615
1667
  try:
1616
1668
  json_obj = json.loads(result)
@@ -5009,7 +5061,7 @@ def doDeleteSession(args, parsed_globals):
5009
5061
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
5062
 
5011
5063
 
5012
- def doDescribeDomainWhiteRules(args, parsed_globals):
5064
+ def doGenerateDealsAndPayNew(args, parsed_globals):
5013
5065
  g_param = parse_global_arg(parsed_globals)
5014
5066
 
5015
5067
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5038,11 +5090,11 @@ def doDescribeDomainWhiteRules(args, parsed_globals):
5038
5090
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
5039
5091
  client._sdkVersion += ("_CLI_" + __version__)
5040
5092
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5041
- model = models.DescribeDomainWhiteRulesRequest()
5093
+ model = models.GenerateDealsAndPayNewRequest()
5042
5094
  model.from_json_string(json.dumps(args))
5043
5095
  start_time = time.time()
5044
5096
  while True:
5045
- rsp = client.DescribeDomainWhiteRules(model)
5097
+ rsp = client.GenerateDealsAndPayNew(model)
5046
5098
  result = rsp.to_json_string()
5047
5099
  try:
5048
5100
  json_obj = json.loads(result)
@@ -7316,6 +7368,7 @@ ACTION_MAP = {
7316
7368
  "DescribeBatchIpAccessControl": doDescribeBatchIpAccessControl,
7317
7369
  "DeleteIpAccessControl": doDeleteIpAccessControl,
7318
7370
  "DescribeAntiInfoLeakRules": doDescribeAntiInfoLeakRules,
7371
+ "DescribeAreaBanAreas": doDescribeAreaBanAreas,
7319
7372
  "ModifyCustomRule": doModifyCustomRule,
7320
7373
  "DescribeFindDomainList": doDescribeFindDomainList,
7321
7374
  "ModifyInstanceQpsLimit": doModifyInstanceQpsLimit,
@@ -7338,7 +7391,7 @@ ACTION_MAP = {
7338
7391
  "DescribeIpHitItems": doDescribeIpHitItems,
7339
7392
  "DescribeHistogram": doDescribeHistogram,
7340
7393
  "DescribeWebshellStatus": doDescribeWebshellStatus,
7341
- "GenerateDealsAndPayNew": doGenerateDealsAndPayNew,
7394
+ "DescribeDomainWhiteRules": doDescribeDomainWhiteRules,
7342
7395
  "DeleteAntiInfoLeakRule": doDeleteAntiInfoLeakRule,
7343
7396
  "ModifyAreaBanAreas": doModifyAreaBanAreas,
7344
7397
  "CreateDeals": doCreateDeals,
@@ -7404,7 +7457,7 @@ ACTION_MAP = {
7404
7457
  "AddCustomWhiteRule": doAddCustomWhiteRule,
7405
7458
  "DescribeWafAutoDenyRules": doDescribeWafAutoDenyRules,
7406
7459
  "DeleteSession": doDeleteSession,
7407
- "DescribeDomainWhiteRules": doDescribeDomainWhiteRules,
7460
+ "GenerateDealsAndPayNew": doGenerateDealsAndPayNew,
7408
7461
  "CreateHost": doCreateHost,
7409
7462
  "ModifyDomainsCLSStatus": doModifyDomainsCLSStatus,
7410
7463
  "RefreshAccessCheckResult": doRefreshAccessCheckResult,
@@ -252,6 +252,13 @@
252
252
  "output": "CreateTaskAlarmRegularResponse",
253
253
  "status": "online"
254
254
  },
255
+ "CreateTaskFolder": {
256
+ "document": "编排空间-工作流-创建任务文件夹",
257
+ "input": "CreateTaskFolderRequest",
258
+ "name": "创建任务文件夹",
259
+ "output": "CreateTaskFolderResponse",
260
+ "status": "online"
261
+ },
255
262
  "CreateTaskVersionDs": {
256
263
  "document": "提交任务版本",
257
264
  "input": "CreateTaskVersionDsRequest",
@@ -7702,6 +7709,70 @@
7702
7709
  ],
7703
7710
  "type": "object"
7704
7711
  },
7712
+ "CreateTaskFolderRequest": {
7713
+ "document": "CreateTaskFolder请求参数结构体",
7714
+ "members": [
7715
+ {
7716
+ "disabled": false,
7717
+ "document": "项目Id",
7718
+ "example": "无",
7719
+ "member": "string",
7720
+ "name": "ProjectId",
7721
+ "required": true,
7722
+ "type": "string"
7723
+ },
7724
+ {
7725
+ "disabled": false,
7726
+ "document": "文件夹名称",
7727
+ "example": "无",
7728
+ "member": "string",
7729
+ "name": "FolderName",
7730
+ "required": true,
7731
+ "type": "string"
7732
+ },
7733
+ {
7734
+ "disabled": false,
7735
+ "document": "工作量ID",
7736
+ "example": "无",
7737
+ "member": "string",
7738
+ "name": "WorkflowId",
7739
+ "required": true,
7740
+ "type": "string"
7741
+ },
7742
+ {
7743
+ "disabled": false,
7744
+ "document": "父文件夹ID",
7745
+ "example": "无",
7746
+ "member": "string",
7747
+ "name": "ParentFolderId",
7748
+ "required": false,
7749
+ "type": "string"
7750
+ }
7751
+ ],
7752
+ "type": "object"
7753
+ },
7754
+ "CreateTaskFolderResponse": {
7755
+ "document": "CreateTaskFolder返回参数结构体",
7756
+ "members": [
7757
+ {
7758
+ "disabled": false,
7759
+ "document": "任务文件夹Id,null则创建失败\n注意:此字段可能返回 null,表示取不到有效值。",
7760
+ "example": "无",
7761
+ "member": "string",
7762
+ "name": "Data",
7763
+ "output_required": true,
7764
+ "type": "string",
7765
+ "value_allowed_null": true
7766
+ },
7767
+ {
7768
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7769
+ "member": "string",
7770
+ "name": "RequestId",
7771
+ "type": "string"
7772
+ }
7773
+ ],
7774
+ "type": "object"
7775
+ },
7705
7776
  "CreateTaskRequest": {
7706
7777
  "document": "CreateTask请求参数结构体",
7707
7778
  "members": [
@@ -300,6 +300,14 @@
300
300
  "title": "创建集成任务告警规则"
301
301
  }
302
302
  ],
303
+ "CreateTaskFolder": [
304
+ {
305
+ "document": "",
306
+ "input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTaskFolder\n<公共请求参数>\n\n{\n \"ProjectId\": \"1522676572149563392\",\n \"FolderName\": \"FFFOOOLLLDDDEERR\",\n \"ParentFolderId\": \"6cccb832-b76a-11ed-b7fc-043f72e73c62\",\n \"WorkflowId\": \"63b3878f-0602-11ee-b7fc-043f72e73c62\"\n}",
307
+ "output": "{\n \"Response\": {\n \"Data\": \"277e97b2-8475-11ee-bfeb-b8cef68a6637\",\n \"RequestId\": \"7d1d9f10-fb66-40c3-b704-5e174ebc95dd\"\n }\n}",
308
+ "title": "创建工作流中任务目录接口"
309
+ }
310
+ ],
303
311
  "CreateTaskVersionDs": [
304
312
  {
305
313
  "document": "失败",
@@ -10365,6 +10365,58 @@ def doModifyDimensionWeight(args, parsed_globals):
10365
10365
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10366
10366
 
10367
10367
 
10368
+ def doCreateTaskFolder(args, parsed_globals):
10369
+ g_param = parse_global_arg(parsed_globals)
10370
+
10371
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
10372
+ cred = credential.CVMRoleCredential()
10373
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
10374
+ cred = credential.STSAssumeRoleCredential(
10375
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
10376
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
10377
+ )
10378
+ 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):
10379
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
10380
+ else:
10381
+ cred = credential.Credential(
10382
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
10383
+ )
10384
+ http_profile = HttpProfile(
10385
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
10386
+ reqMethod="POST",
10387
+ endpoint=g_param[OptionsDefine.Endpoint],
10388
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
10389
+ )
10390
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
10391
+ if g_param[OptionsDefine.Language]:
10392
+ profile.language = g_param[OptionsDefine.Language]
10393
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
10394
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
10395
+ client._sdkVersion += ("_CLI_" + __version__)
10396
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
10397
+ model = models.CreateTaskFolderRequest()
10398
+ model.from_json_string(json.dumps(args))
10399
+ start_time = time.time()
10400
+ while True:
10401
+ rsp = client.CreateTaskFolder(model)
10402
+ result = rsp.to_json_string()
10403
+ try:
10404
+ json_obj = json.loads(result)
10405
+ except TypeError as e:
10406
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
10407
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
10408
+ break
10409
+ cur_time = time.time()
10410
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
10411
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
10412
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
10413
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
10414
+ else:
10415
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
10416
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
10417
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10418
+
10419
+
10368
10420
  def doBatchStopWorkflowsByIds(args, parsed_globals):
10369
10421
  g_param = parse_global_arg(parsed_globals)
10370
10422
 
@@ -11667,6 +11719,7 @@ ACTION_MAP = {
11667
11719
  "DescribeOpsMakePlans": doDescribeOpsMakePlans,
11668
11720
  "DescribeRealTimeTaskInstanceNodeInfo": doDescribeRealTimeTaskInstanceNodeInfo,
11669
11721
  "ModifyDimensionWeight": doModifyDimensionWeight,
11722
+ "CreateTaskFolder": doCreateTaskFolder,
11670
11723
  "BatchStopWorkflowsByIds": doBatchStopWorkflowsByIds,
11671
11724
  "BatchResumeIntegrationTasks": doBatchResumeIntegrationTasks,
11672
11725
  "SetTaskAlarmNew": doSetTaskAlarmNew,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1129.1
3
+ Version: 3.0.1131.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.1129
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1131
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介